Open
Conversation
…pository interactions
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.
📄 Description
📌 구현 내용
✅ PR 포인트
검증 인터페이스 - RangeValidator
를 구현한 Validator 구현체 - NumberRangeValidator, DateRangeValidator
Validator 동적 선택 클래스 - DynamicRangeValidator
타입과 Validator 구현체 매핑 관리 클래스 - RangeValidatorFactory
검증 객체에 ValidRange 어노테이션 선언 및 호출 -> DynamicRangeValidator 초기화. 검증 객체의 필드명 획득 -> isValid 호출. 필드값 획득 -> 필드타입에 따라 RangeValidatorFactory에서 타입과 매핑되는 RangeValidator 획득 -> validator의 isValid를 통해 검증
**검증 실패 시 실패 정보가 BindingResult 객체에 추가된 후 MethodArgumentNotValidException 발생