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

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

    To make things simple with the form tag just add a "commandName" which is a horrible name for what it is actually looking for...it wants the object you named in the MdelAttribute annotation. So in this case commandName="movie".

    That'll save you reading long winded explanations friend.

提交回复
热议问题