2026/2/8 14:09:19
网站建设
项目流程
装修网站开发前的准备工作,亚马逊海外版网站,产品开发流程6个步骤,成都科技网站建设咨询电话1、问题原因
发生这个问题就是因为Pagehelper中jsqlparser和Mybatis-puls中jsqlparser冲突#xff0c;以我的项目来说#xff0c;我项目中的Pagehelper中jsqlparser版本为4.2而Mybatis-puls中jsqlparser的版本为4.9#xff0c;就导致版本兼容问题
2、解决方法
如果你想以…1、问题原因发生这个问题就是因为Pagehelper中jsqlparser和Mybatis-puls中jsqlparser冲突以我的项目来说我项目中的Pagehelper中jsqlparser版本为4.2而Mybatis-puls中jsqlparser的版本为4.9就导致版本兼容问题2、解决方法如果你想以Pagehelper中jsqlparser的版本来使用的话那么项目将启动不起来就比如拿我的项目来说如果我在pom文件中添加dependency groupIdcom.github.jsqlparser/groupId artifactIdjsqlparser/artifactId version4.2/version /dependency那么项目则报错会启动不了所以解决方法不能以Pagehelper中jsqlparser的版本。你可以提升一下pagehelper的版本 这是maven中央仓库Maven 存储库 com.github.pagehelper ? pagehelper-spring-boot-starter但是中央仓库中pagehelper的最新版本中的jsqlparser也不是4.9是4.7但是我在我的pom文件中添加了4.7的版本依赖问题解决了可能4.7的版本可以和4.9的版本可以兼容吧dependency groupIdcom.github.jsqlparser/groupId artifactIdjsqlparser/artifactId version4.7/version /dependency我看网上其他的帖子都是推荐将MyBatis-Plus与PageHelper中的jsqlparser库排除后再指定使用jsqlparser4.7当然网上还有其他的方法都可以试试