minor formatting work

This commit is contained in:
eugenp 2016-03-01 20:02:15 +02:00
parent b8f1f23d1c
commit fb06c3f3a2
1 changed files with 6 additions and 3 deletions

View File

@ -11,9 +11,12 @@ import org.springframework.security.config.annotation.web.configuration.WebSecur
public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
@Override
protected void configure(final AuthenticationManagerBuilder auth) throws Exception {
auth.inMemoryAuthentication().withUser("john").password("123").roles("USER").and().withUser("tom").password("111").roles("ADMIN");
}
protected void configure(final AuthenticationManagerBuilder auth) throws Exception {// @formatter:off
auth.inMemoryAuthentication().
withUser("john").password("123").roles("USER").
and().
withUser("tom").password("111").roles("ADMIN");
}// @formatter:on
@Override
@Bean