작성
·
761
13
@Bean
public UserDetailsManager users() {
UserDetails user = User.builder()
.username("user")
.password("{noop}1111")
.roles("USER")
.build();
UserDetails sys = User.builder()
.username("sys")
.password("{noop}1111")
.roles("SYS")
.build();
UserDetails admin = User.builder()
.username("admin")
.password("{noop}1111")
.roles("ADMIN", "SYS", "USER")
.build();
return new InMemoryUserDetailsManager( user, sys, admin );
}