错误情况

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文件  以防写错字母

nested exception is org.apache.ibatis.reflection.ReflectionException

nested exception is org.apache.ibatis.reflection.ReflectionException

nested exception is org.apache.ibatis.reflection.ReflectionException

 

相关文章:

  • 2021-12-26
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-29
  • 2021-08-21
猜你喜欢
  • 2021-11-11
  • 2021-05-16
  • 2021-06-24
  • 2021-07-13
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案