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
相關文章
相關標籤/搜索