white knight

导航

 

参考https://www.cnblogs.com/xiaozhang9/p/jackson.html?utm_source=itdadao&utm_medium=referral

 

<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
</dependency>

spring.jackson.serialization.write_dates_as_timestamps=false

@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@Column(name="ADDTIME")
private LocalDateTime addTime;
posted on 2018-03-27 13:38  white knight  阅读(1231)  评论(0编辑  收藏  举报