nested exception is org.apache.ibatis.reflection.ReflectionException
发布日期:2021-11-15 14:57:33
浏览次数:17
分类:技术文章
本文共 1638 字,大约阅读时间需要 5 分钟。
错误情况
Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: Could not set property 'paperId' of 'class com.xiaobao.pojo.Paper' with value '1' Cause: org.apache.ibatis.reflection.ReflectionException: There is no setter for property named 'paperId' in 'class com.xiaobao.pojo.Paper'
Description The server encountered an unexpected condition that prevented it from fulfilling the request.
Exception
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: Could not set property 'paperId' of 'class com.xiaobao.pojo.Paper' with value '1' Cause: org.apache.ibatis.reflection.ReflectionException: There is no setter for property named 'paperId' in 'class com.xiaobao.pojo.Paper' org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:982) org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861) javax.servlet.http.HttpServlet.service(HttpServlet.java:634) org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846) javax.servlet.http.HttpServlet.service(HttpServlet.java:741) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
原因 实体类 与 mapper.xml 文件的get,set方法不对应 顺便检查一下jsp文件 以防写错字母
转载地址:https://blog.csdn.net/qq_39736176/article/details/82904792 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!
发表评论
最新留言
关注你微信了!
[***.104.42.241]2024年04月28日 05时22分20秒
关于作者
喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!
推荐文章
C/C++/PHP等语言 在线编译器
2019-05-09
C++矩阵处理工具——Eigen
2019-05-09
Stanford机器学习---第六讲. 怎样选择机器学习方法、系统
2019-05-09
机器学习——深度学习(Deep Learning)
2019-05-09
一首诗,致亲爱的csdn
2019-05-09
Stanford机器学习---第七讲. 机器学习系统设计
2019-05-09
Python进阶(一)——安装Python、程序执行、Python模块和IDLE调试
2019-05-09
Stanford机器学习---第八讲. 支持向量机SVM
2019-05-09
使用MSP430模拟比较器的郁闷
2019-05-09
关于IAR的使用心得总结贴
2019-05-09
Make Games with Python & Pygame (1)
2019-05-09
Make Games with Python & Pygame (2)
2019-05-09
Make Game with Python & Pygame (3)
2019-05-09
Make Games with Python & Pygame (4)
2019-05-09
Make Games with Python & Pygame (5)
2019-05-09
Python tkinter 包含的插件类型 & tkinter中可变的变量
2019-05-09
tkinter中用到Python的lambda
2019-05-09
毕业设计之路(1)——题目要求
2019-05-09
毕业设计之路(2)——初识TCP
2019-05-09