Document types to which format properties apply
Closes gh-41482
This commit is contained in:
@@ -56,16 +56,19 @@ Conversion can also be customized using the `spring.webflux.format.*` configurat
|
||||
When not configured, the following defaults are used:
|
||||
|
||||
|===
|
||||
|Property |`DateTimeFormatter`
|
||||
|Property |`DateTimeFormatter` |Formats
|
||||
|
||||
|configprop:spring.webflux.format.date[]
|
||||
|`ofLocalizedDate(FormatStyle.SHORT)`
|
||||
|`java.util.Date` and `java.time.LocalDate`
|
||||
|
||||
|configprop:spring.webflux.format.time[]
|
||||
|`ofLocalizedTime(FormatStyle.SHORT)`
|
||||
|java.time's `LocalTime` and `OffsetTime`
|
||||
|
||||
|configprop:spring.webflux.format.date-time[]
|
||||
|`ofLocalizedDateTime(FormatStyle.SHORT)`
|
||||
|java.time's `LocalDateTime`, `OffsetDateTime`, and `ZonedDateTime`
|
||||
|===
|
||||
|
||||
|
||||
|
||||
@@ -65,16 +65,19 @@ Conversion can also be customized using the `spring.mvc.format.*` configuration
|
||||
When not configured, the following defaults are used:
|
||||
|
||||
|===
|
||||
|Property |`DateTimeFormatter`
|
||||
|Property |`DateTimeFormatter` |Formats
|
||||
|
||||
|configprop:spring.mvc.format.date[]
|
||||
|`ofLocalizedDate(FormatStyle.SHORT)`
|
||||
|`java.util.Date` and `java.time.LocalDate`
|
||||
|
||||
|configprop:spring.mvc.format.time[]
|
||||
|`ofLocalizedTime(FormatStyle.SHORT)`
|
||||
|java.time's `LocalTime` and `OffsetTime`
|
||||
|
||||
|configprop:spring.mvc.format.date-time[]
|
||||
|`ofLocalizedDateTime(FormatStyle.SHORT)`
|
||||
|java.time's `LocalDateTime`, `OffsetDateTime`, and `ZonedDateTime`
|
||||
|===
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user