Skip to content

Document defaults for spring.mvc.format.* and spring.webflux.format.* properties #30041

@membersound

Description

@membersound

Why are there no default settings for spring.mvc.format.* properties?

I mean: spring is convention over configuration, but when I send a POST request and want spring to parse values like 2021-07-19 into a java.time.LocalDate or java.time.LocalDateTime field, I have to explicit op-in?

Please consider setting them to some reasonable values, like:

#yyyy-MM-dd
spring.mvc.format.date=iso
spring.mvc.format.time=HH:mm:ss
spring.webflux.format.date=...

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions