Error creating bean with name ‘com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration‘:……

在学习使用条件分页时,一开始添加如下依赖

<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文件中这一行报黄,但运行之后不再报错

原作者文章:Error creating bean with name com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration_error creating bean with name 'com.github.pagehelp-CSDN博客

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值