unable to find setter method for attribute:[commandName]
生活随笔
收集整理的這篇文章主要介紹了
unable to find setter method for attribute:[commandName]
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
問題描述:
后臺數(shù)據(jù)封裝處理之后,返回到前臺jsp頁面時jsp頁面報異常:unable to find setter method for attribute:[commandName]
問題解決辦法:
查看tld文件得知類文件org.springframework.web.servlet.tags.form.FormTag
查看是否commandName是否已經(jīng)棄用? ? 有@Deprecated注解或者根本就沒找到commandName這個屬性
commandName 修改成 modelAttribute
重新訪問請求,頁面錯誤消失
總結
以上是生活随笔為你收集整理的unable to find setter method for attribute:[commandName]的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: linux用sqlserver数据库,L
- 下一篇: CallStack获取函数堆栈