java9+ OffsetDateTimeSerializer/OffsetDateTimeDeserializer miliseconds instead of nano config
@kupci đang làm issue này rồi.
Từ ngày 19/2/2020.
Đánh giá
Issue này chưa được đánh giá.
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
- Ngôn ngữ chính
- Java
- Star
- 425
- Fork
- 125
- Merge trung bình
- 19 phút
- Pull request đã merge (30 ngày)
- 1
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
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của FasterXML/jackson-modules-java8
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
-
Wrap `DateTimeException` Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
FasterXML/jackson-modules-java8#382 · 3 bình luận ·
-
date-time-config
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
FasterXML/jackson-modules-java8#374 · 31 bình luận · 1 reaction ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
FasterXML/jackson-modules-java8#310 · 1 bình luận ·
-
Instants get not deserialized as expected sometimes (millis vs nanos, non-fractional numbers) Đang mởtest-needed
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
FasterXML/jackson-modules-java8#304 · 3 bình luận ·
Tất cả issue của FasterXML/jackson-modules-java8
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
elastic/gradle-plugins#157 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
cryptomator/hub#497 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
johanhaleby/occurrent#1120 ·