Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document that SerializationFeature.WRITE_DURATIONS_AS_TIMESTAMPS is disabled by default #38083

Closed
lako12 opened this issue Oct 27, 2023 · 1 comment
Assignees
Labels
type: documentation A documentation update
Milestone

Comments

@lako12
Copy link

lako12 commented Oct 27, 2023

In the documentation
https://docs.spring.io/spring-boot/docs/current/reference/html/howto.html#howto.spring-mvc
Section: 4.3. Customize the Jackson ObjectMapper

it is written:
The ObjectMapper (or XmlMapper for Jackson XML converter) instance (created by default) has the following customized properties:

MapperFeature.DEFAULT_VIEW_INCLUSION is disabled
DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES is disabled
SerializationFeature.WRITE_DATES_AS_TIMESTAMPS is disabled

In my application, however, I noticed that SerializationFeature.WRITE_DURATIONS_AS_TIMESTAMPS is false while the default value is true.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Oct 27, 2023
@wilkinsona
Copy link
Member

You're right. Thanks. The documentation update was overlooked in #19352.

@wilkinsona wilkinsona added type: documentation A documentation update and removed status: waiting-for-triage An issue we've not yet triaged labels Oct 27, 2023
@wilkinsona wilkinsona added this to the 2.7.x milestone Oct 27, 2023
@wilkinsona wilkinsona changed the title Possible error in documentation Document that SerializationFeature.WRITE_DURATIONS_AS_TIMESTAMPS is disabled by default Oct 27, 2023
@wilkinsona wilkinsona self-assigned this Oct 27, 2023
@wilkinsona wilkinsona modified the milestones: 2.7.x, 2.7.18 Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation A documentation update
Projects
None yet
Development

No branches or pull requests

3 participants