Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. @Configuration
  2. @EnableWebSecurity
  3. public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
  4. @Override
  5. protected void configure(AuthenticationManagerBuilder auth) throws Exception {
  6. // formatter:off / on -> 사이의 코드의 자동 정렬을 하지 않는다.
  7. // @formatter:off
  8. auth
  9. .inMemoryAuthentication()
  10. .withUser("test")
  11. .password("{noop}test") // {noop} 필수!
  12. .roles("USER");
  13. // @formatter:on
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement