Open
Conversation
TodoService의 saveTodo 메서드에 @transactional 어노테이션을 추가.
User 엔티티 및 생성자에 nickname 필드 추가, fromAuthUser메서드를 위해 해당 dto(AuthUser)에도 추가, JwtUtil에 추가하면서 해당 서비스(AuthService) 수정, JwtFilter에 추가 및 수정.
JPA에서 제공하는 Specification을 사용하여 코드 작성.
JPQL을 직접 작성해서 사용하는 코드(과제 요구에 맞는 코드)로 수정
JPQL을 직접 작성해서 사용하는 코드(과제 요구에 맞는 코드)로 수정
단건 조회 성공 메서드에 nickname 추가, 과제 부분에서 200으로 응답 받던 것을 400으로 수정.
cascade = CascadeType.PERSIST 추가
QueryDSL에 관한 의존성 주입, 리포지토리 인터페이스 생성, 리포지토리 인터페이스의 구현체 생성, 리포지토리에 상속을 추가. 구현체(TodoRepositoryImpl)에서 EntityManager를 사용하여 쿼리 DSL 사용 함수 생성.
의존성 주입, SecurityConfig 생성 및 JwtFilter 수정. 그에 따른 관련 파일들 제거, 컨트롤러 수정(@Auth -> @AuthenticationPrincipal).
AuthUser에 UserDetails 추가, 컨트롤러 수정.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TodoService의 saveTodo 메서드에 @transactional 어노테이션을 추가.