-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Province Enum 입력 값에 대한 유연한 처리(제주, 제주도, 제주특별자치도 등) #242
Conversation
Test Coverage Report
|
제주특별자치도; | ||
제주; | ||
|
||
@JsonCreator(mode = JsonCreator.Mode.DELEGATING) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@RequestBody
입력에 대해서는 @JsonCreator
를 타고 Deserialize 된다고 합니다.
@@ -22,6 +24,7 @@ public class ShelterAddress { | |||
private double y; | |||
|
|||
@NotNull | |||
@Enumerated(EnumType.STRING) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
대참사
@Override | ||
public Province convert(final String source) { | ||
return Province.fromJson(source); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@RequestParam
입력에 대한 처리입니다. - 1
@Override | ||
public void addFormatters(final FormatterRegistry registry) { | ||
registry.addConverter(new ProvinceConverter()); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@RequestParam
입력에 대한 처리입니다. - 2
작업 내용
@JsonCreator
와 Converter 를 사용해서 처리했습니다.@Enumetrated String
설정 추가했습니다(기존 데이터도 모두 변경)Close #240 ,
Close #241