logout
-
[Spring Security] DB정보로 로그인/로그아웃하기 (2)DEV/Spring 2020. 8. 14. 14:21
1. 로그인 로그아웃 처리를 해주기위해 우선 Configuration을 수정해준다. @Configuration @EnableWebSecurity public class SecurityConfig extends WebSecurityConfigurerAdapter { @Autowired CustomUserDetailService customUserDetailService; @Override public void configure(WebSecurity web) throws Exception { web.ignoring().antMatchers("/webjars/**"); } @Override protected void configure(AuthenticationManagerBuilder auth) throws ..