SpringBoot导入PageHelper依赖报错问题

问题出在spring-boot-starter-parent
父版本如果是 2.6x , 无论什么版本的pagehelper 导入依赖启动就报错
2.5.12似乎是能用pagehelper最高版版本 ,
这个时候 pagehelper从1.25测到1.41都没问题
有解释说是mybatis依赖版本的问题, 这就不试了, 问题已经解决

   <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.5.5</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>
    
        <!--    Mybatis Spring Boot Starter    -->
        <dependency>
            <groupId>org.mybatis.spring.boot</groupId>
            <artifactId>mybatis-spring-boot-starter</artifactId>
            <version>2.2.2</version>
        </dependency>
          <!--    pagehelper Spring Boot Starter    -->
        <dependency>
            <groupId>com.github.pagehelper</groupId>
            <artifactId>pagehelper-spring-boot-starter</artifactId>
            <version>1.2.5</version>
        </dependency>

猜你喜欢

转载自blog.csdn.net/weixin_48011779/article/details/123998624