mybatis-plus和pagehelp冲突 maven下mybatis-plus和pagehelp冲突问题的解决办法

软件发布|下载排行|最新软件

当前位置:首页IT学院IT技术

mybatis-plus和pagehelp冲突 maven下mybatis-plus和pagehelp冲突问题的解决办法

jkdgvse   2021-03-16 我要评论
想了解maven下mybatis-plus和pagehelp冲突问题的解决办法的相关内容吗,jkdgvse在本文为您仔细讲解mybatis-plus和pagehelp冲突的相关知识和一些Code实例,欢迎阅读和指正,我们先划重点:mybatis-plus和pagehelp冲突,下面大家一起来学习吧。

Maven库:

http://repo2.maven.org/maven2/

Maven依赖查询:

http://mvnrepository.com/

解决办法:

修改pom.xml文件

排除 pagehelp 包的mybatis和mybatis-spring依赖

 <!-- pagehelper -->
    <dependency>
      <groupId>com.github.pagehelper</groupId>
      <artifactId>pagehelper-spring-boot-starter</artifactId>
      <version>1.2.5</version>
      <exclusions>
        <exclusion>
          <groupId>org.mybatis</groupId>
          <artifactId>mybatis</artifactId>
        </exclusion>
        <exclusion>
          <groupId>org.mybatis</groupId>
          <artifactId>mybatis-spring</artifactId>
        </exclusion>
      </exclusions>
    </dependency>

<exclusions></exclusions> 内是要排除的依赖

注:mybatis-plus:3.2.0    pagehelp:1.2.5 。 这个版本组合下,只排除mybatis不够,得两个都排除。

Copyright 2022 版权所有 软件发布 访问手机版

声明:所有软件和文章来自软件开发商或者作者 如有异议 请与本站联系 联系我们