ReflectionException: There is no getter for property named 'str' in 'class java.lang.String'

在springboot开发中使用了tk.mapper和mybatis-generator,会自动生成相关的dao、mapper、xml、model等文件,并生成相应表的增删改查方法和接口,在dao中会继承咱们自定义的通用mapper,因此在生成的dao中若是没有特殊需求,就不会添加多余的方法,因此今天在dao中添加了一个根据传入的字符串参数查询包含该字符串的数据的方法时报了以下错误:html [2
相关文章
相关标签/搜索