严重: Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'created_time' in 'class com.smy.pojo.Users'] with root cause
org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'created_time' in 'class com.smy.pojo.Users'
原因:实体的属性和传的值映射不一致。
解决办法:如下图,一一对应

这篇博客讨论了一个在Spring MVC应用中遇到的问题,即在`dispatcherServlet`处理请求时抛出了MyBatis的系统异常,原因是实体类`Users`缺少`created_time`属性的getter方法。解决方法是确保实体类的属性与传入的值完全匹配,添加对应的getter方法。
5050

被折叠的 条评论
为什么被折叠?



