fateame 发表于 2016-11-25 08:01:50

org.mybatis.spring.MyBatisSystemException: nested exception is

  org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'usersname' in 'class com.zyd.beans.Admin'
 at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:73)
 at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:365)
 
Caused by:org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'usersname' in 'class com.zyd.beans.Admin'
...
 
原因:
    在bean的xml文件中
username 错误的写成了usersname,spring找不到usersname因此就报错
页: [1]
查看完整版本: org.mybatis.spring.MyBatisSystemException: nested exception is