There is no getter for property named 'DEPARTMENT_ID' in 'class com.sccy.hr.model.RewardsPunishment'

0人阅读 评论(0) 收藏 举报
分类:

出现这种状况一般是:

错误:

<if test="departmentId != null" >
        #{DEPARTMENT_ID,jdbcType=VARCHAR},

  </if>

正确:

<if test="departmentId != null" >
        #{departmentId,jdbcType=VARCHAR},

     </if>

写成DEPARTMENT_ID mybase会去找他的get方法,没有找不到报的错


查看评论

[Debug]There is no getter for property named '__frch_item_0' in

【JAVA】 文件类型:mapper.xml 框架:MyBatis 控制台报错:There is no getter for property named '__frch_item_0' in...
  • gajicat
  • gajicat
  • 2017-05-13 14:30:06
  • 1942

There is no getter for property named 'X' in 'class java.lang.XX'

UserDao.java代码如下: package soc.dao; import java.util.List; import java.util.Map; import org.apache....
  • gl5773477
  • gl5773477
  • 2016-12-26 18:15:30
  • 3227

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

mysql文如下,传入参数为‘parentCategoryId’,运行报错为:There is no getter for property named 'parentCategoryId' in '...
  • noku_ln10
  • noku_ln10
  • 2012-09-14 10:34:44
  • 39692

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

这是昨天加班的时候遇到的一个问题,之前似乎遇到过不过可能当时没这么在意;...
  • Mokill0911
  • Mokill0911
  • 2015-12-31 00:56:36
  • 3538

Mybatis找不到参数错误:There is no getter for property named 'categoryId' in 'class java.lang.Integer'。

Mybatis找不到参数错误:There is no getter for property named 'categoryId' in 'class java.lang.Integer'。错误Lis...
  • FansUnion
  • FansUnion
  • 2015-02-12 13:38:59
  • 6993

错误解决:There is no getter for property named 'id' in class 'java.lang.String'

使用mybatis传入参数,如果在mappin.xml中使用标签判断该参数是否为空,通常会报以上异常,解决方法:​在接口中该方法的参数前加上@Param("参数名")注解,即可​ 接口: publ...
  • u011897392
  • u011897392
  • 2015-07-03 10:36:36
  • 8465

Mybatis-There is no getter for property named 'XXX' in 'class java.lang.String'解决办法

There is no getter for property named '**' in 'class java.lang.String       初学mybatis没几天,遇到的问题不少,...
  • u011029071
  • u011029071
  • 2013-09-30 22:19:49
  • 7637

mybatis 基本类型的if条件判断问题 There is no getter for property named 'xxx' in 'class Java.lang.Integer'

mybatis if条件判断中test里,如果传参是像int的基本类型,因为它没有getter方法所以判断会报错:There is no getter for property named 'cmpi...
  • eunyeon
  • eunyeon
  • 2017-03-20 16:09:16
  • 1746

mybatis报错 There is no getter for property named 'xx' in 'class java.lang.String

今天在写代码的时候突然遇到这等怪事,用了或者之类的判断语句,就导致报错:  There is no getter for property named 'xx' in 'class java.lan...
  • yansong_8686
  • yansong_8686
  • 2015-09-08 22:47:09
  • 5865

Mybatis-异常-There is no getter for property named 'VARCHAR' in 'class com.xxx.xxxxx

org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.Reflecti...
  • doegoo
  • doegoo
  • 2016-01-15 15:00:40
  • 4365
    个人资料
    持之以恒
    等级:
    访问量: 3631
    积分: 213
    排名: 34万+