minor formatting work
This commit is contained in:
parent
b8f1f23d1c
commit
fb06c3f3a2
@ -11,9 +11,12 @@ import org.springframework.security.config.annotation.web.configuration.WebSecur
|
|||||||
public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
|
public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void configure(final AuthenticationManagerBuilder auth) throws Exception {
|
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");
|
auth.inMemoryAuthentication().
|
||||||
}
|
withUser("john").password("123").roles("USER").
|
||||||
|
and().
|
||||||
|
withUser("tom").password("111").roles("ADMIN");
|
||||||
|
}// @formatter:on
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Bean
|
@Bean
|
||||||
|
Loading…
x
Reference in New Issue
Block a user