net.sf.jsqlparser.statement.select.SelectItem

今天一启动项目,出现了这个错误,仔细想了想,应该是昨天合并代码,导致的mybatis-plus版本冲突,以及分页PageHelper版本不兼容

可以看见这个我是最下边的  Caused by 报错信息,这个地方提示我       

net .sf.jsqlparser.statement.select.SelectItem

在我的项目中,common模块中mybatis-plus 重复导入依赖

这里我直接将这个依赖注释掉防止重复依赖注入

在我的server模块中可以看见这个关于jsqlparser依赖

这个依赖是导致项目启动失败的根本原因,一定要将其注释

依赖排除工作结束后,打开maven 进行clean + install

重新启动项目,可以看见已经可以正常启动!!!

帮我分析一下springboot报错 org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'interceptorConfig': Unsatisfied dependency expressed through field 'sqlSessionFactoryList'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration': Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mybatisPlusInterceptor' defined in class path resource [com/baiyue/zhongxiang/config/MybatisPlusConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor]: Factory method 'mybatisPlusInterceptor' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'paginationInnerInterceptor' defined in class path resource [com/baiyue/zhongxiang/config/MybatisPlusConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor]: Factory method 'paginationInnerInterceptor' threw exception; nested exception is java.lang.InstantiationError: net.sf.jsqlparser.statement.select.SelectItem
03-08
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值