What causes “java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name 'command' available as request attribute”?

前端 未结 5 894
独厮守ぢ
独厮守ぢ 2020-11-22 03:06

This is meant to be an extensive canonical question & answer post for these types of questions.


I\'m trying to write a Spring MVC web applicati

5条回答
  •  庸人自扰
    2020-11-22 04:03

    Updating from Spring version 3 to Spring version 5, produces the same error. All answers were satisfied already in my code. Adding the annotation @ControllerAdvice solved the problem for me.

提交回复
热议问题