mybatis之org.apache.ibatis.reflection.ReflectionException: There is no getter for property named '

Posted 秋夜雨巷

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mybatis之org.apache.ibatis.reflection.ReflectionException: There is no getter for property named '相关的知识,希望对你有一定的参考价值。

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 '的主要内容,如果未能解决你的问题,请参考以下文章

mybatis之org.apache.ibatis.reflection.ReflectionException: There is no getter for property named '

mybatis之缓存模块

MyBatis异常处理org.apache.ibatis.executor.ExecutorException

Mybatis报错:org.apache.ibatis.builder.IncompleteElementException

mybatis-spring-boot, org.apache.ibatis.binding.BindingException: 无效的绑定语句

Mybatis中的错误org.apache.ibatis.exceptions.PersistenceException