org.apache.ibatis.reflection.ReflectionException:There is no getter for property named 'parentId' in
来源:互联网 发布:网络交换机图片 编辑:程序博客网 时间:2024/05/16 15:28
- 异常信息:
- org.apache.ibatis.reflection.ReflectionException:There is no getter for property named 'parentId' in 'class java.lang.Long'
- 动态sql:
<selectid="selectByParentId" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="column" />
from tb_item_cat
<where>
<if test="parentId != null">
parent_id=#{parentId}
</if>
</where>
</select>
- 原因:
- 原因出在test="parentId != null"
- 修改方法:
- 将参数parentId修改为_paramter
<select id="selectByParentId" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="column" />
from tb_item_cat
<where>
<if test="_parameter != null">
parent_id=#{_parameter}
</if>
</where>
</select>
0 0
- 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 'xxx' in
- org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'userIds' 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 'agoTime' in
- org.apache.ibatis.reflection.ReflectionException: There is no getter for property named
- 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 'sex'
- 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
- mybatis 异常信息 org.apache.ibatis.reflection.ReflectionException: There is no getter for property named
- org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'xx'的问题
- Cause: org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'empi
- 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 'funcSetId' in 'class java.lang.Integer'
- Error querying database. Cause: org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'schedu
- 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
- qt QTabWidget设置tab头的宽度
- Fedora25基本配置
- spring boot集成swagger
- 经典数据结构
- CMD 命令输出保存到TXT文件
- org.apache.ibatis.reflection.ReflectionException:There is no getter for property named 'parentId' in
- unit14
- Servlet的单实例多线程
- Spring教程--入门程序
- Java多线程应用场景
- pg学习_运算符,表达式
- Shadowsocks 一键安装脚本(四合一)
- HIVE UDAF 各阶段及调用方法
- 通过ip连接MySQL时出现1449、1045异常