본문 바로가기

내일배움캠프 4기 스프링/내배캠 TIL📘

01. 03 코딩 테스트 입문/ 팀 프로젝트/ 개인 과제 수행

728x90

1. 코딩 테스트 입문

짝수 홀수의 개수 : 풀이 중 정말 센스있다고 생각한 풀이

class Solution {
    public int[] solution(int[] num_list) {
        int[] answer = new int[2];

        for(int i = 0; i < num_list.length; i++)
            answer[num_list[i] % 2]++;

        return answer;
    }
}

최댓값 만들기(1)

2. 팀 프로젝트

코드 구현을 통한 흐름 파악

역할 분담 : 프로젝트

프로젝트 내부에서 : 댓글 기능 구현

CommentController

CommentService

Comment

CommentLike

3. 개인 과제 수행

JwtAuthFilter 구성 분석 및 공부

스프링 시큐리티 아키텍처에 대한 공문 읽기

https://docs.spring.io/spring-security/reference/servlet/architecture.html#servlet-filters-review

 

Architecture :: Spring Security

Spring Security’s Servlet support is based on Servlet Filters, so it is helpful to look at the role of Filters generally first. The following image shows the typical layering of the handlers for a single HTTP request. The client sends a request to the ap

docs.spring.io

JwtUtil 수정 : createAuthenticaion 메서드 추가

security 패키지 생성 후 UserDetailsImpl, UserDetailsServiceImpl 생성

SecurityExceptionDto 생성

 

728x90