I\'m using spring-boot-starter-security dependency, to make use of several classes that come with spring-security. But as I want to integrate it in
spring-boot-starter-security
spring-security
There seems to be a simpler solution.
Simply put this annotationabove your main class or the same place as your SpingBootApplication annotation
SpingBootApplication
@EnableAutoConfiguration(exclude = {org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class})