SpringBoot는 PageHelper 종속성 오류 보고 문제를 가져옵니다.

문제는
spring-boot-starter-parent의 상위 버전이 2.6x라면 어떤 버전의 pagehelper가 dependency를 import하고 시작하더라도 오류를 보고한다는 점이다.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>

Acho que você gosta

Origin blog.csdn.net/weixin_48011779/article/details/123998624
Recomendado
Clasificación