Open
Conversation
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.
요구사항
기본
심화
주요 변경사항
Instant타입을 사용하여 시간 데이터의 정밀도와 가독성을 높였습니다.UserStatusService에 구현했습니다.Spring 핵심 개념 이해하기
1. IoC Container (제어의 역전)
new키워드를 사용하여 서비스와 레포지토리 객체를 생성하고 조립했습니다.2. Dependency Injection (의존성 주입)
@RequiredArgsConstructor와 Spring의 기능을 통해 필요한 의존성을 컨테이너로부터 주입받습니다. 이를 통해 클래스 간의 결합도를 낮추고 유연한 확장이 가능해졌습니다.3. Bean (빈)
@Service,@Repository어노테이션을 사용하여 각 구현체들을 Bean으로 등록하였으며, 설정 파일의 값에 따라 특정 구현체(JCF/File)를 선택적으로 빈으로 등록하도록 구성했습니다.스크린샷
멘토에게
UserStatusService에서 유저 존재 여부를 검증한 후 상태를 생성/업데이트하는 과정에서 예외 처리를 꼼꼼히 챙기려 노력했습니다.application.yaml설정에 따라 Bean이 동적으로 바뀌는 구조를 구현했는데, 이 방식이 실무에서도 자주 쓰이는 형태인지 궁금합니다.