**[Masatoshi Tada](https://jira.spring.io/secure/ViewProfile.jspa?name=masatoshi%20tada)** opened **[SPR-16854](https://jira.spring.io/browse/SPR-16854?redirect=false)** 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](https://jira.spring.io/secure/attachment/25726/type-conversion-error.png) (_165.85 kB_) **Issue Links:** - #21380 `@DateTimeFormat` annotations are necessary both on field and constructor parameter in the immutable form class - #21381 Validation failure not exposed next to binding failure for immutable form class **Referenced from:** commits https://github.com/spring-projects/spring-framework/commit/955665b419ec237029abfa0824ca8a47d410a423
Masatoshi Tada opened SPR-16854 and commented
I created src/main/resources/messages.properties and added some messages like below.
When type conversion error occurs, the message of
typeMismatch.java.time.LocalDateis not used.Affects: 5.0.6
Reference URL: https://github.com/MasatoshiTada/spring-mvc-form-sample/tree/master/01-immutable
Attachments:
Issue Links:
@DateTimeFormatannotations are necessary both on field and constructor parameter in the immutable form classReferenced from: commits 955665b