|
|
|
@ -34,7 +34,7 @@ public class JacksonAutoConfiguration {
@@ -34,7 +34,7 @@ public class JacksonAutoConfiguration {
|
|
|
|
|
return builder -> { |
|
|
|
|
builder.locale(Locale.CHINA); |
|
|
|
|
builder.timeZone(TimeZone.getTimeZone(ZoneId.systemDefault())); |
|
|
|
|
// 针对于Date类型,文本格式化,已经实现前端返回时间戳
|
|
|
|
|
// 针对于Date类型,文本格式化
|
|
|
|
|
builder.simpleDateFormat(DatePattern.NORM_DATETIME_PATTERN); |
|
|
|
|
// 解决返回给前端的Long类型数据失去精度,将Long转换为String
|
|
|
|
|
builder.serializerByType(Long.class, ToStringSerializer.instance); |
|
|
|
|