org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.Reflecti
来源:互联网 发布:python 2.7.11 32位 编辑:程序博客网 时间:2024/04/28 16:01
<select id="queryPlanClustersCount" resultType="java.lang.Integer" parameterType="java.lang.String"> SELECT COUNT(DISTINCT cluster_name) AS total FROM plan_cluster <where> <if test="product != null and product != ''"> product_class = #{product} </if> </where> /*WHERE product_class = #{product}*/</select>
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'product' in 'class java.lang.String'
结论:
把if判断标签去掉就可以了,标签是针对JAVABEAN或者MAP的,String不能用标签
单用String 用if判断就会报这个错误 并且没办法解决 目前不支持。 把标签去了,那就用不了动态语句了
0 0
- org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.Reflecti
- org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.Reflecti
- org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.Reflecti
- org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.
- MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException:
- mybatis报错:org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exception
- Spring+mybatis错误:org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.bi
- Spring+MyBatis 错误:org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.b
- MyBatis批量更新报错org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.bindin
- mybatis异常:org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.B
- mybatis 异常 org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding
- Spring错误:org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.Bi
- Spring错误:org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.B
- Spring错误:org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.Bi
- org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.Persiste
- org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.executor.ExecutorEx
- org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingExce
- org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.Persiste
- jenkins svn tomcat ant自动部署
- Android学习笔记(二十):关于Toolbar中的setting menu不显示的问题
- maven项目的相关问题
- symfony框架重写cookie,session所带来的问题?
- select 清除原有样式
- org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.Reflecti
- git版本管理(1)
- 使用Golang的Context管理上下文
- 用 Flask 来写个轻博客 (30) — 使用 Flask-Admin 增强文章管理功能
- 数据结构 考研题
- leetcode(51):N-Queens
- Android Serializable的简单认识
- iOS围绕某点缩放或旋转的AnchorPoint的设定
- spring 多数据源配置方式