Skip to content

Commit 905f8f1

Browse files
committed
refactor(Time): [9단계] Property 방식으로 매개변수를 처라하기 위해 JsonCreator 어노테이션 추가
1 parent 2d067f7 commit 905f8f1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/roomescape/model/time/Time.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
package roomescape.model.time;
22

3+
import com.fasterxml.jackson.annotation.JsonCreator;
4+
35
public class Time {
46

57
private Long id;
68
private String time;
79

10+
@JsonCreator(mode = JsonCreator.Mode.PROPERTIES)
811
public Time(String time) {
912
this.time = time;
1013
}

0 commit comments

Comments
 (0)