• Brian Clozel's avatar
    Support date conversion format for java.time types · 2fa0539e
    Brian Clozel authored
    Prior to this change, the Spring MVC auto-configuration would add a new
    formatter to convert `java.util.Date` to/from `String` using the
    configured configuration property `spring.mvc.date-format`.
    
    This commit adds a new `WebConversionService` class that registers
    date formatters with a custom date format, or register the default ones
    if no custom configuration is provided.
    This avoids duplicating equivalent formatters in the registry.
    
    With this change, date types from `java.util`, `org.joda.time` and
    `java.time` are now all supported.
    
    This commit also replicates this feature for WebFlux applications by
    adding a new `spring.webflux.date-format` configuration property.
    
    Closes gh-5523
    Closes gh-11402
    2fa0539e
Name
Last commit
Last update
..
.gitignore Loading commit data...
Guardfile Loading commit data...
appendix-application-properties.adoc Loading commit data...
appendix-auto-configuration-classes.adoc Loading commit data...
appendix-configuration-metadata.adoc Loading commit data...
appendix-dependency-versions.adoc Loading commit data...
appendix-executable-jar-format.adoc Loading commit data...
appendix-test-auto-configuration.adoc Loading commit data...
appendix.adoc Loading commit data...
build-tool-plugins.adoc Loading commit data...
deployment.adoc Loading commit data...
documentation-overview.adoc Loading commit data...
getting-started.adoc Loading commit data...
howto.adoc Loading commit data...
index-docinfo.xml Loading commit data...
index.adoc Loading commit data...
production-ready-features.adoc Loading commit data...
spring-boot-cli.adoc Loading commit data...
spring-boot-features.adoc Loading commit data...
using-spring-boot.adoc Loading commit data...