首页 > 编程语言 > 详细

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

时间:2018-06-28 13:03:53      阅读:426      评论:0      收藏:0      [点我收藏+]

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'

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!