SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top