BAEL-315 - reformatting config classes

This commit is contained in:
slavisa-baeldung
2016-10-29 19:25:52 +02:00
parent be45787757
commit e087fc921e
4 changed files with 46 additions and 50 deletions
@@ -18,13 +18,12 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
http
.authorizeRequests()
.anyRequest().hasRole("SYSTEM")
.and()
.httpBasic()
.and()
.csrf()
.disable();
http.authorizeRequests()
.anyRequest().hasRole("SYSTEM")
.and()
.httpBasic()
.and()
.csrf()
.disable();
}
}