Casdoor SpringBoot Starter is designed to help you easily integrate casdoor into your Spring Boot project.
- Add
casdoor-spring-boot-starter
to the Spring Boot project.
Maven
No central library, please download by yourself
- Inject the Enforcer where you need to use it
@Component
public class Test {
@Autowired
private Casdoor casdoor;
}
- Add configuration
casbin:
endpoint: https://xxx.xxx.xxx