Configuration
-
FORM 인증 - 기본SPRING/스프링 시큐리티 2021. 8. 1. 15:21
기본적인 Form 인증 관련 Config Class @Configuration @EnableWebSecurity public class SecurityConfig extends WebSecurityConfigurerAdapter { @Override protected void configure(HttpSecurity http) throws Exception { // 모든 리소스에 대한 인증완료시 접근 허용 http .authorizeRequests() .anyRequest().authenticated(); // form Login 사용 http.formLogin() //.loginPage("/loginPage") // 사용자 정의 로그인 페이지 .defaultSuccessUrl("/") // 로그인 성공..