Closed
Description
Masatoshi Tada opened SPR-16854 and commented
I created src/main/resources/messages.properties and added some messages like below.
NotBlank={0} is required
NotNull={0} is required
typeMismatch.java.time.LocalDate={0} must be 'yyyy-MM-dd'
message=Message
birthday=Birthday
When type conversion error occurs, the message of typeMismatch.java.time.LocalDate
is not used.
Affects: 5.0.6
Reference URL: https://github.com/MasatoshiTada/spring-mvc-form-sample/tree/master/01-immutable
Attachments:
- type-conversion-error.png (165.85 kB)
Issue Links:
- @DateTimeFormat annotations are necessary both on field and constructor parameter in the immutable form class [SPR-16840] #21380
@DateTimeFormat
annotations are necessary both on field and constructor parameter in the immutable form class - Validation failure not exposed next to binding failure for immutable form class [SPR-16841] #21381 Validation failure not exposed next to binding failure for immutable form class
Referenced from: commits 955665b