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因此就报错