Mybatis-There is no getter for property named 'tj' in 'class

转载 2015年07月11日 00:18:09

 在测试时报错:There is no getter for property named'tj' in 'class java.lang.String'

 问题分析:Mybatis默认采用ONGL解析参数,所以会自动采用对象树的形式取string.tj值,引起报错。

 解决方法:  public ListmethodName(@Param(value="tj") String tj);说明参数值。





相关文章推荐

关于myBatis的问题There is no getter for property named 'USER_NAME' in 'class com.bky.model.实例类'

现在流行的 ssm(spring + struts2 + myBatis)  持久层的mybatis是需要配置映射器的,找了个demo连接的数据库是mysql 于是就修改了一下弄成了连接oracle的...

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
  • 2973

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

具体错误信息如下: org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflecti...

源码分析 There is no getter for property named '*' in 'class java.lang.String

There is no getter for property named '*' in 'class java.lang.String',此错误之所以出现,是因为mybatis在对parameter...
  • qing_gee
  • qing_gee
  • 2015年12月25日 12:36
  • 21676

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....

There is no getter for property named 'value' in 'class com.hl.myabtis.first.beas.User'

There is no getter for property named ‘value’ in ‘class com.hl.myabtis.first.beas.User’异常...

使用MyBatis数组参数出现异常There is no getter for property named '__frch_customId_0'

实体中数组字段作为参数时,出现异常There is no getter for property named '__frch_customId_0' in 'class com.llg.modules...

Mybatis单个参数的if判断(针对异常:There is no getter for property..)

There is no getter for property named 'langId' in 'class java.lang.Integer' Mybatis异常处理

org.apache.ibatis.reflection.ReflectionException: There is no getter for property

严重: Servlet.service() for servlet frontDispatcher threw exception org.apache.ibatis.reflection.Refl...

com.ibatis.common.beans.ProbeException: There is no READABLE property named 'baiduIndex' in class 'j

第一次使用ibatis,不是很熟悉,使用时sql报如下错误: DEBUG 2016-04-18 10:45:41: [org.springframework.jdbc.support.SQLErr...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:Mybatis-There is no getter for property named 'tj' in 'class
举报原因:
原因补充:

(最多只允许输入30个字)