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})

发布了753 篇原创文章 · 获赞 72 · 访问量 13万+

猜你喜欢

转载自blog.csdn.net/qq_41723615/article/details/104445536
今日推荐