Spring-boot: Consider a better default for JSR-310 Jackson rendering

Created on 19 Nov 2017  路  4Comments  路  Source: spring-projects/spring-boot

Although Boot makes it quite easy to render JSR-310 dates as ISO-8601 strings, it still requires flipping spring.jackson.serialization.write-dates-as-timestamps to false (see this article for all steps needed).

Maybe 2.0 is the chance to flip the default to false in the first place, and align with the set of better defaults that Boot' Jackson has already implemented (e.g. ignoring unknown properties by default).

enhancement

Most helpful comment

This ties into #10976. Without the change proposed here, #10976 will only really achieve part of its goal. +1 from me for flipping the default for write-dates-as-timestamps.

All 4 comments

Absolutely.

This ties into #10976. Without the change proposed here, #10976 will only really achieve part of its goal. +1 from me for flipping the default for write-dates-as-timestamps.

+1. I think this is definitely consistent with the "batteries" included idea of spring-boot default/auto config.

Was this page helpful?
0 / 5 - 0 ratings