dinky icon indicating copy to clipboard operation
dinky copied to clipboard

[Optimization][SpringConfig] 优化Jackson序列化时区的全局配置

Open chrofram opened this issue 3 years ago • 0 comments

Search before asking

  • [X] I had searched in the issues and found no similar optimization requirement.

Description

根据我查阅到的资料springboot项目web服务默认最终序列化时会调用jackson进行,因此可能出现jackson序列化的时间时区问题,目前已知元数据管理(/api/database/getSchemasAndTables)中获取表信息时Table类(com.dlink.model.Table没有JsonFormat注解),存在时差问题,可以考虑增加配置spring.jackson.time-zone方便全局控制时区显示问题。 由于我对spring调用jackson的机制并不了解,因此不确定是否其他用户客户端也有此类问题。 以下是图片说明: lQLPJxaJnq71uHDNAk7NBVawzbJbicZwPUQC4ors_ADSAA_1366_590

Are you willing to submit a PR?

  • [ ] Yes I am willing to submit a PR!

Code of Conduct

chrofram avatar Jul 29 '22 06:07 chrofram