org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.xxxxxxxx

错误信息:

org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'login_acct' in 'class com.jcn.entity.MyAdmin'

出错原因:

Caused by: org.apache.ibatis.reflection.ReflectionException: There is no getter for property named '

解决方法:

错误示范:@Insert("insert into t_myadmin (login_acct) values(#{login_acct,jdbcType=VARCHAR})

表字段:例如login_acct

代码实体属性:LoginAcct

正确示范:

@Insert("insert into t_myadmin (login_acct) values(#{LoginAcct,jdbcType=VARCHAR})

 

org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.xxxxxxxxorg.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.xxxxxxxx 无厌剑主 发布了741 篇原创文章 · 获赞 65 · 访问量 10万+ 他的留言板 关注
上一篇:mybaits四-3:获取保存数据的id


下一篇:贴上整合ssm环境的代码