转自:https://www.cnblogs.com/wenhulu/p/5555457.html 当使用Spring MVC @Valid对输入框进行验证的时候,可能会遇到以下的异常: Neither BindingResult nor plain target object for bean name ‘mybean’ available as request attribute 先看下controller: @RequestMapping(value="/{userId}/updateUs…