SpringBoot imports PageHelper dependency error reporting problem

The problem is that if
the parent version of spring-boot-starter-parent is 2.6x, no matter what version of pagehelper imports dependencies and starts, it will report an error.
2.5.12 seems to be the highest version of pagehelper.
At this time, pagehelper is no problem from 1.25 to 1.41.
There is an explanation that it is a problem of mybatis dependency version, so don’t try it, the problem has been solved

   <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>

Guess you like

Origin blog.csdn.net/weixin_48011779/article/details/123998624