• 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
.github Loading commit data...
.mvn Loading commit data...
ci Loading commit data...
eclipse Loading commit data...
spring-boot-project Loading commit data...
spring-boot-samples Loading commit data...
spring-boot-samples-invoker Loading commit data...
spring-boot-tests Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
CODE_OF_CONDUCT.adoc Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
SUPPORT.adoc Loading commit data...
mvnw Loading commit data...
mvnw.cmd Loading commit data...
pom.xml Loading commit data...