在学习使用条件分页时,一开始添加如下依赖
<dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper-spring-boot-starter</artifactId> <version>1.4.7</version> </dependency>
然后报错:
Error creating bean with name 'com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration': net/sf/jsqlparser/statement/select/SelectBody
有了之前的经验之后,我尝试更改版本为1.4.6等等
在csdn上搜索之后,看到一个相似问题的解决方案
于是更改依赖为
<dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper-spring-boot-starter</artifactId> <version>1.2.5</version> </dependency>
虽然pom文件中这一行报黄,但运行之后不再报错