[ 작업 한 내용 ]
1. api 응답 객체 및 예외 처리 통일화
- ApiResponse 클래스에 success, error 메서드 생성 후 관리
- ErrorResponse 삭제
- SuccessCode, ErrorCode를 enum으로 관리
- messages.properties에 메시지 키 정의.
- BaseException, GlobalExceptionHandler 코드 수정
2. 로그인 기능 구현 (+JWT)
- AuthController, AuthService에 로그인 기능 구현
- 토큰 생성을 위해 JwtTokenProvider 생성
- JWT 토큰 검증 및 유효성 검사를 위해 JwtAuthenticationFilter 생성
- JWT 속성 관리를 위해 JwtProperties 생성.
- JWT 속성에 따른 변수값을 application.properties에 정의
- JWT 예외처리를 위해 JwtAccessDeniedHandler, JwtAuthenticationEntryPoint 정의
- SecurityConfig에서 접근 권한 설정
3. 로그아웃 기능 구현
- AuthController에서 Cookie를 제거하도록 코드 작성
