I created a Spring boot project with the Spring initializer and only have the starter code so far.
The sample code
@Spring
That is the default behavior. to change this, you have a few options:
You can remove the Spring Boot Security dependency:
org.springframework.boot
spring-boot-starter-security
You can desable autoconfiguration. To do so; in your main class, to: @SpringBootApplication append: (exclude = { SecurityAutoConfiguration.class }) so that it looks like:
@SpringBootApplication(exclude = { SecurityAutoConfiguration.class })
public static void main(String[] args) {
SpringApplication.run(SpringBootSecurityApplication.class, args);
}
}
you can also do this from the application.properties file
For more information on desableing Auto-Configuration and setting up your own. Reference: Spring Boot Security Auto-Configuration