🚗 Backend Toy Project/Photogram

    [Photogram] 회원가입 - Security 설정

    현재 사용하는 웹 페이지는 어떠한 경로로 들어가든 Spring Security에서 이를 막고 아래와 같은 로그인 페이지를 보여주고 있습니다. 다만 우리는 직접 만들어 놓은 로그인 페이지가 따로 있으며 인증이 필요한 페이지와 그렇지 않은 페이지를 직접 구분하기 위해 Security 설정을 수행해주어야 합니다. 📝 SecurityConfig 이를 위해 우선 WebSecurityConfigurerAdapter를 상속받는 클래스 SecurityConfig를 생성하여 구현해주었습니다. package com.cos.photogram.config; ... @EnableWebSecurity //Security 활성화 @Configuration //IoC public class SecurityConfig extends ..