MethodArgumentNotValidException::errorsToStringList should include only the resolved message when MessageSource is used #30198
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Affects: 6.0.4
I try to use error handling by setting
problemdetails.enabled=true
and internationalising error messages. But I can't achieve my expected result Because inorg.springframework.web.bind.MethodArgumentNotValidException::errorsToStringList
field and single quotations were added to messages.Is there any way to internationalize the field name or remove the field name and brackets from messages?
messages.properties
Here is sample output:
But I expect:
The text was updated successfully, but these errors were encountered: