开发者社区 问答 正文

tk.mybatis没有selectByExample Java问题

springboot项目,引用了tk.mybatis,mapper继承了通用的extends BaseMapper,但是没有ByExample这些,不知道是哪出错了。 image.png

  <groupId>tk.mybatis</groupId>
            <artifactId>mapper-spring-boot-starter</artifactId>
            <version>2.1.5</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/tk.mybatis/mapper -->
        <dependency>
            <groupId>tk.mybatis</groupId>
            <artifactId>mapper</artifactId>
            <version>4.1.5</version>
        </dependency>

展开
收起
海边一只船 2020-05-27 10:26:09 1739 分享 版权
2 条回答
写回答
取消 提交回答
  • 你解决问题了吗?求助同上

    2021-03-05 10:08:31
    赞同 展开评论
  • 本来就没这方法吧,example是示例的意思,正规的命名格式不可能在basemapper里封这种方法,如果有还是早点抛弃换个框架,没点基础代码规范的人写出来的东西怎么都是没用的

    2020-05-27 13:40:53
    赞同 展开评论
问答分类:
问答地址: