spring boot unauthorized

Solutions on MaxInterview for spring boot unauthorized by the best coders in the world

showing results for - "spring boot unauthorized"
Tomas
20 Jan 2016
1import org.springframework.context.annotation.Configuration;
2import org.springframework.security.config.annotation.web.builders.HttpSecurity;
3import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
4import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
5
6@EnableWebSecurity
7@Configuration
8public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
9
10    @Override
11    protected void configure(HttpSecurity http) throws Exception {
12        http.csrf().disable();
13    }
14
15}