ITeye博客

org.mybatis.spring.MyBatisSystemException: nested exception is

843977358 · 2015-01-31 15:40 · exception · 编程语言 · MyBatis · Exception · Markdown

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

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。