Skip to content

No type-based error code used by immutable form class when type conversion error occurs [SPR-16854] #21394

Closed
@spring-projects-issues

Description

@spring-projects-issues

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:

Issue Links:

Referenced from: commits 955665b

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions