异常:Neither BindingResult nor plain target object for bean name 'command' available as request attribute

Neither BindingResult nor plain target object for bean name 'command' available as request attribute 这个异常引起的原因是

modelAttribute这个单词写错了,滑稽,吐槽一些这种应该错误应该在编译期报错的啊。
<form:form action="${pageContext.request.contextPath}/personnel/addDutyInfo" method="POST" modelAttribute="dutyInfo">

 

posted @ 2017-07-31 14:20  钓鱼翁  阅读(568)  评论(0编辑  收藏  举报