[Project] 쇼핑몰 프로젝트 - 4 Security 설정 & 로그인
·
Web/Spring Boot
build.gradle implementation 'org.springframework.boot:spring-boot-starter-security' 시큐리티 종속성 추가 SecurityConfig 작성 @Configuration @EnableWebSecurity public class SecurityConfig{ @Bean public SecurityFilterChain filterChain(HttpSecurity http) throws Exception{ http.csrf().disable().cors().disable() .authorizeHttpRequests() .antMatchers("/", "/auth/login", "/auth/signup").permitAll() .anyRequest()...