码迷,mamicode.com
首页 > 编程语言 > 详细

mybatis之org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'time' in 'class java.lang.String'

时间:2018-06-28 13:46:05      阅读:187      评论:0      收藏:0      [点我收藏+]

标签:time   span   pac   img   配置   except   org   property   图片   

mybatis接口

List<String> getUsedCate(String time);

配置文件

  <select id="getUsedCate" parameterType="java.lang.String" resultType="java.lang.String">
     select distinct(cate.cate_name) from account as acc left join conCategory as cate on acc.cateCode=cate.cate_code
     where time like ‘${time}%‘
  </select>

报错

org.apache.ibatis.reflection.ReflectionException: There is no getter for property named ‘time‘ in ‘class java.lang.String‘

解决方法

接口改为

技术分享图片

 

mybatis之org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'time' in 'class java.lang.String'

标签:time   span   pac   img   配置   except   org   property   图片   

原文地址:https://www.cnblogs.com/aeolian/p/9238027.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!