Spring 3 exception throws exception

New issue:

I register / bind my custom property editor and get a java.lang.IllegalArgumentException - as expected. Problem: I do not know how to create my own error message if the binding does not work.

Any idea? thank!

@InitBinder( { "playerCreationBean" } )
protected void initBinder( final WebDataBinder binder )
{
   binder.registerCustomEditor(Date.class, new DatePropertyEditor());    
}
+3
source share
1 answer

axtavt . (.. Messages.properties , MessageSource) spring . "typeMismatch" , , . , . , spring , .

+1

Source: https://habr.com/ru/post/1761392/


All Articles