0

i'm trying to disable default security in Springboot 2, but i can't.

In sprinboot 1.5 i have used security.basic.enabled=false, but now it's deprecated.

I'm trying to create a configuration class that extends WebConfigurationAdapter overriding the configure method like this:

@Configuration
@EnableWebSecurity
public class StackWebSecurityConfigurerAdapter extends 
WebSecurityConfigurerAdapter {

@Override
protected void configure(HttpSecurity http) throws Exception {
    http.httpBasic().disable();
    // http.authorizeRequests().anyRequest().permitAll(); // Also doesn't work.
}
}

Can you help me?

0 Answers0