Always use MethodArgumentNotValidException(MethodParameter, BindingResult)
constructor
#30558
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
#23846 introduced a new
MethodArgumentNotValidException(Executable, BindingResult)
constructor that can be advantageously replaced by usingMethodArgumentNotValidException(MethodParameter, BindingResult)
inModelAttributeMethodProcessor
.This change updates
ModelAttributeMethodProcessor
accordingly, and deprecatesMethodArgumentNotValidException(Executable, BindingResult)
in favor ofMethodArgumentNotValidException(MethodParameter, BindingResult)
.The text was updated successfully, but these errors were encountered: