
276
처음부터 제대로 배우는 스프링 부트
@Bean
UserDetailsService authentication() {
UserDetails peter = User.builder()
.username("peter")
.password(pwEncoder.encode("ppassword"))
.roles("USER")
.build();
UserDetails jodie = User.builder()
.username("jodie")
.password(pwEncoder.encode("jpassword"))
.roles("USER", "ADMIN")
.build();
System.out.println(" >>> Peter's password: " + peter.getPassword());
System.out.println(" >>> Jodie's password: " + jodie.getPassword());
return new InMemoryUserDetailsManager(peter, jodie);
}
}
Aircraft Positions
앱을 다시 시작한 다음, 다시 한번 인증을 시도하고 항공기 현 위치 목
록을 다음 결과와 같이 조회합니다 (결과를 페이지에 맞게 잘라 편집함 ).
mheckler-a01 :: ~ » http :8080/aircraft ...