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

前端 未结 5 792
独厮守ぢ
独厮守ぢ 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:05

    In my case, it worked by adding modelAttribute="movie" to the form tag, and prepending the model name to the attribute, something like

提交回复
热议问题