💦 private CustomUserDetailsService userDetailsService;
@Autowired 로 필드주입(DI)
@Override
protected void configure(AuthenticationManagerBuilder auth) throws Exception {
auth.userDetailsService(userDetailsService)
.passwordEncoder(passwordEncoder());
}
// @Override
// @Bean
// protected UserDetailsService userDetailsService() {
//
// UserDetails user = User.builder().username("user").password(passwordEncoder().encode("pass")).roles("USER").build();
// UserDetails kim = User.builder().username("drv98").password(passwordEncoder().encode("1234")).roles("ADMIN").build();
// return new InMemoryUserDetailsManager(user, kim);
// }