首页 > 其他分享> > org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.xxxxxxxx
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})
无厌剑主 发布了741 篇原创文章 · 获赞 65 · 访问量 10万+ 关注
标签:MyBatisSystemException,exception,reflection,ibatis,acct,apache,org,login 来源: https://blog.csdn.net/qq_41723615/article/details/104445536