[java/spring] JPA timeStamp format 예제
2022. 7. 10. 20:34
몰아 넣기
@Getter @MappedSuperclass @EntityListeners(AuditingEntityListener.class) public class TimeStamp { @CreatedDate @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy.MM.dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy.MM.dd HH:mm:ss") private LocalDateTime createdDate; @LastModifiedDate @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy.MM.dd HH:mm:ss") @DateTimeFormat(pattern = "yy..