日常报错:There is no getter for property named 'Subject' in 'class cn.kgc.zyp.entity.Teacher

Posted 1355861728--qqcom

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了日常报错:There is no getter for property named 'Subject' in 'class cn.kgc.zyp.entity.Teacher相关的知识,希望对你有一定的参考价值。

这段报错的意思很容易理解,就是在实体类Teacher中没有get方法,但是检查发现里面确实有这个get方法,那为啥还报错呢

其实当一塔低昂有问题是也会出现这个报错,经过检查发现:在TeacherMapper.xml中表名写成了大写,实际上是teacher,改成小写后问题就迎刃而解了。。。

技术图片

 

以上是关于日常报错:There is no getter for property named 'Subject' in 'class cn.kgc.zyp.entity.Teacher的主要内容,如果未能解决你的问题,请参考以下文章

Mybatis单个参数报错: There is no getter for property named

Mybatismybatis查询报错org.apache.ibatis.reflection.ReflectionException: There is no getter for propert(代

解决Mybatis报错:org.apache.ibatis.reflection.ReflectionException: There is no getter for property named

Mybatis 传入List类型参数,报错:There is no getter for property named '__frch_item_0' in

Mybatis 报错 There is no getter for property named '***' in 'class java.lang.String'(示

There is no getter for property named 'xxx' in 'class java.lang.String