Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Configuration
- @EnableWebSecurity
- public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
- @Override
- protected void configure(AuthenticationManagerBuilder auth) throws Exception {
- // formatter:off / on -> 사이의 코드의 자동 정렬을 하지 않는다.
- // @formatter:off
- auth
- .inMemoryAuthentication()
- .withUser("test")
- .password("{noop}test") // {noop} 필수!
- .roles("USER");
- // @formatter:on
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement