org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'xxxx' in 'class xx.xxx.xxx'
at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:75)
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:371)
at com.sun.proxy.$Proxy101.update(Unknown Source)
at org.mybatis.spring.SqlSessionTemplate.update(SqlSessionTemplate.java:254)
at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:54)
Caused by: org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'xxxx' in 'class com.xx.xxx'
定位原因:
xml文件的一个字段写错了,和数据库里的字段不一致。
本文详细解析了在使用MyBatis框架时遇到的MyBatisSystemException异常,具体为ReflectionException错误,指出XML配置文件中字段名与数据库字段不一致是导致此问题的原因。
5047





