Advertisement
Guest User

Untitled

a guest
Feb 17th, 2020
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.28 KB | None | 0 0
  1. @EnableWebSecurity
  2. public class SecurityConfig {
  3.  
  4.     @Autowired
  5.     public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {
  6.         auth
  7.             .inMemoryAuthentication()
  8.                 .withUser("user").password("password").roles("USER");
  9.     }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement