错误信息:
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万+ 关注