본문 바로가기

My Cookbook104

[SpringSecurity] SpringSecurity + JWT 회원가입, 테스트 코드 작성 해당 글은 Spring으로 구현한 프로젝트를 SpringBoot로 리팩토링 하는 과정을 담은 글입니다.- Index -[SpringSecurity] SpringSecurity + JWT 로그인 구현_1[SpringSecurity] SpringSecurity + JWT 로그인 구현_2[SpringSecurity] SpringSecurity + JWT 로그인 구현_3[SpringSecurity] SpringSecurity + JWT 회원가입, 테스트 코드 작성[번외]JwtAuthorizationFilter에서 상속받을 필터에 대한 고민 이번 글에서는 회원가입 로직을 구현하고, test code를 작성하여 회원 가입 및 인증, 인가를 구현할 것이다. 회원가입 로직1. SignUpDto를 통해 들어온 데이터를 .. 2024. 3. 19.
[Programmers] [PCCE 기출문제] 9번 / 이웃한 칸 문제 설명 각 칸마다 색이 칠해진 2차원 격차 보드판이 있습니다. 그 중 한 칸을 골랐을 때, 위, 아래, 왼쪽, 오른쪽 칸 중 같은 색깔로 칠해진 칸의 개수를 구하려고 합니다. 보드의 각 칸에 칠해진 색깔 이름이 담긴 이차원 문자열 리스트 board와 고른 칸의 위치를 나타내는 두 정수 h, w가 주어질 때 board[h][w]와 이웃한 칸들 중 같은 색으로 칠해져 있는 칸의 개수를 return 하도록 solution 함수를 완성해 주세요. 이웃한 칸들 중 몇 개의 칸이 같은 색으로 색칠되어 있는지 확인하는 과정은 다음과 같습니다. 1. 정수를 저장할 변수 n을 만들고 board의 길이를 저장합니다. 2. 같은 색으로 색칠된 칸의 개수를 저장할 변수 count를 만들고 0을 저장합니다. 3. h와 w의.. 2024. 3. 17.
[SpringSecurity] SpringSecurity + JWT 로그인 구현_3 해당 글은 Spring으로 구현한 프로젝트를 SpringBoot로 리팩토링 하는 과정을 담은 글입니다.- Index -[SpringSecurity] SpringSecurity + JWT 로그인 구현_1[SpringSecurity] SpringSecurity + JWT 로그인 구현_2[SpringSecurity] SpringSecurity + JWT 로그인 구현_3[SpringSecurity] SpringSecurity + JWT 회원가입, 테스트 코드 작성[번외]JwtAuthorizationFilter에서 상속받을 필터에 대한 고민 Postman을 사용하여 로그인 기능이 작동되는지 확인한다. 1. DB에 회원 정보 확인 2. controller에 요청 보낼 SignInDto 구현@Getter@Setter.. 2024. 3. 16.
[SpringSecurity] SpringSecurity + JWT 로그인 구현_2 해당 글은 Spring으로 구현한 프로젝트를 SpringBoot로 리팩토링 하는 과정을 담은 글입니다.- Index -[SpringSecurity] SpringSecurity + JWT 로그인 구현_1[SpringSecurity] SpringSecurity + JWT 로그인 구현_2[SpringSecurity] SpringSecurity + JWT 로그인 구현_3[SpringSecurity] SpringSecurity + JWT 회원가입, 테스트 코드 작성[번외]JwtAuthorizationFilter에서 상속받을 필터에 대한 고민 기능 구현에 앞서 SpringSecurity + JWT 동작 원리를 살펴보자. [SpringSecurity + JWT 동작 원리] 1. 클라이언트가 서버에 로그인 요청2. 서.. 2024. 3. 16.