I use Spring boot 2 and Spring security but I can't disable the default security. This is my configuration class:
@Configuration
@EnableWebSecurity
public class SecurityConfig extends WebSecurityConfigurerAdapter
Ortomala Lokni
63.5k27 gold badges202 silver badges268 bronze badges
1 Answer 1
As said in the comments, you have to exclude the security auto configuration with:
@SpringBootApplication(exclude={SecurityAutoConfiguration.class})
answered Mar 29, 2019 at 23:16
Ortomala Lokni
63.5k27 gold badges202 silver badges268 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
default
@SpringBootApplication(exclude={SecurityAutoConfiguration.class})