Add BindException to DefaultHandlerExceptionResolver

Previously DefaultHandlerExceptionResolver did not handle BindException
but after this change it does. A BindException is raised when an
@ModelAttribute annotated argument is not followed by a BindingResult
argument. Hence this is unlikely to affect browser rendering.
For programmatic clients however this change ensures an unhandled
BindException is at least turned into a 400 error.

Issue: SPR-9310
This commit is contained in:
Rossen Stoyanchev
2012-07-10 17:27:51 -04:00
parent e860fa9a8b
commit a1b7a314c1
3 changed files with 43 additions and 6 deletions

View File

@@ -21,6 +21,7 @@ Changes in version 3.2 M2 (2012-08-xx)
* add defaultCharset property to StringHttpMessageConverter
* add @ExceptionResolver annotation to detect classes with @ExceptionHandler methods
* move RSS/Atom message converter registration ahead of jackson/jaxb2
* handle BindException in DefaultHandlerExceptionResolver
Changes in version 3.2 M1 (2012-05-28)