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'

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-07
  • 2022-02-04
  • 2021-11-03
猜你喜欢
  • 2022-01-23
  • 2021-07-21
  • 2022-12-23
  • 2021-11-29
  • 2021-07-04
  • 2021-08-15
  • 2022-12-23
相关资源
相似解决方案