mybatis 异常信息 org.apache.ibatis.reflection.ReflectionException: There is no getter for property named
2017-03-17 13:16
1196 查看
Caused by: org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'globalMobileNo' in 'class java.lang.String';
出现这个异常信息,大部分原因是你将String 类型数据作为参数,然后再sql 中用if 语句判断时,对参数进行非空校验,导致
出现上面的问题;
解决办法可有其二:
1.用map 集合封装该参数
2.改变if 条件判断
<if test="_parameter != null and _parameter != '' ">
and t.globalMobileNo like CONCAT('%',#{globalMobileNo},'%')
</if>
出现这个异常信息,大部分原因是你将String 类型数据作为参数,然后再sql 中用if 语句判断时,对参数进行非空校验,导致
出现上面的问题;
解决办法可有其二:
1.用map 集合封装该参数
2.改变if 条件判断
<if test="_parameter != null and _parameter != '' ">
and t.globalMobileNo like CONCAT('%',#{globalMobileNo},'%')
</if>
相关文章推荐
- org.apache.ibatis.reflection.ReflectionException: There is no getter for property named
- org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'agoTime' in
- org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'xx'的问题
- org.apache.ibatis.reflection.ReflectionException: There is no getter for property named ‘__frch_item
- org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'id' in 'cla
- org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'funcSetId' in 'class java.lang.Integer'
- org.apache.ibatis.reflection.ReflectionException:There is no getter for property named 'parentId' in
- org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'telOrName'
- org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'userIds' in
- Cause: org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'empi
- Spring+Mybatis 查询所有数据时发生异常:org.apache.ibatis.reflection.ReflectionException: There is no getter for
- org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'xxx' in
- org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'id' in 'cla
- org.apache.ibatis.reflection.ReflectionException: There is no getter for property named
- Cause: org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'user
- 报错:org.apache.ibatis.reflection.ReflectionException: There is no getter for property named
- org.apache.ibatis.reflection.ReflectionException: There is no getter for property
- nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for propert
- Mybatis ReflectionException:There is no getter for property named 遇到的问题小结
- MyBatisSystemException ReflectionException: There is no getter for property named 'userid' in 'class