FasterXML / FasterXML/jackson-modules-java8
java9+ OffsetDateTimeSerializer/OffsetDateTimeDeserializer miliseconds instead of nano config
- Ngôn ngữ chính
- Java
- Star
- 425
- Fork
- 124
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Hi,
we have set `SerializationFeature.WRITE_DATES_AS_TIMESTAMPS` to `false` and in java8 it wrote time in milliseconds precision (java worked this way for a long time).
After migrating to java11 the precision is nanoseconds
* (Java 8- - 2020-01-28T16:31:37.698+01:00)
* (Java 9+ - 2020-01-28T16:31:37.698185+01:00)
This is fine, but unfortunately the services both northbound and southbound of our system can work with milliseconds (3 digits).
Would it be possible to create a `SerializationFeature` to enable java8 behavior meaning serializing only to milliseconds precision?
We use a spring boot autoconfiguration where we would like to set this globally for all of our microservices.
Thanks,
Ondrej
PS: Maybe until then, could you provide us instructions for the best way to setup this in Spring Boot 2.2.x?
Thanks
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.