Open qq253498229 opened 1 year ago
在spring-boot的2.7.3版本中,当我依赖下面的jar包时,pageHelper插件就失效了:
<dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter-test</artifactId> <version>2.2.2</version> <scope>test</scope> </dependency> <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-autoconfigure</artifactId> <version>2.2.2</version> <scope>test</scope> </dependency>
我在 com.github.pagehelper.PageInterceptor#intercept 中打断点发现也进不去,但是奇怪的是,在mockMvc测试的时候一切又都正常了,就狠诡异。
com.github.pagehelper.PageInterceptor#intercept
我的jdk是11,我尝试使用老版本的springboot,比如2.4.x,就没有这个问题。
我将代码提交到了gitee仓库:https://gitee.com/consolelog/demo-angular-springboot-backend/tree/bug0001/ , bug0001分支
在spring-boot的2.7.3版本中,当我依赖下面的jar包时,pageHelper插件就失效了:
我在
com.github.pagehelper.PageInterceptor#intercept
中打断点发现也进不去,但是奇怪的是,在mockMvc测试的时候一切又都正常了,就狠诡异。我的jdk是11,我尝试使用老版本的springboot,比如2.4.x,就没有这个问题。
我将代码提交到了gitee仓库:https://gitee.com/consolelog/demo-angular-springboot-backend/tree/bug0001/ , bug0001分支