如图,maven中所有的依赖冲突都已经排除掉了,为啥还是报如下错误?

作者站长头像
站长
· 阅读数 19

如图,maven中所有的依赖冲突都已经排除掉了,为啥还是报如下错误?

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2022-09-04 09:49:10.779 ERROR 19840 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 

***************************
APPLICATION FAILED TO START
***************************

Description:

An attempt was made to call a method that does not exist. The attempt was made from the following location:

    com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor.<clinit>(PaginationInnerInterceptor.java:70)

The following method did not exist:

    net.sf.jsqlparser.schema.Column.withColumnName(Ljava/lang/String;)Lnet/sf/jsqlparser/schema/Column;

The method's class, net.sf.jsqlparser.schema.Column, is available from the following locations:

    jar:file:/D:/maven/repository/com/github/jsqlparser/jsqlparser/3.2/jsqlparser-3.2.jar!/net/sf/jsqlparser/schema/Column.class

The class hierarchy was loaded from the following locations:

    net.sf.jsqlparser.schema.Column: file:/D:/maven/repository/com/github/jsqlparser/jsqlparser/3.2/jsqlparser-3.2.jar
    net.sf.jsqlparser.parser.ASTNodeAccessImpl: file:/D:/maven/repository/com/github/jsqlparser/jsqlparser/3.2/jsqlparser-3.2.jar


Action:

Correct the classpath of your application so that it contains a single, compatible version of net.sf.jsqlparser.schema.Column

Disconnected from the target VM, address: '127.0.0.1:6712', transport: 'socket'

Process finished with exit code 1
回复
1个回答
avatar
test
2024-07-20

我看错误信息是方法不存在。可以排查下 jsqlparser 包这里,我在搜索中发现和你类似的问题,可以看下其他人的回答看看能不能解决:https://segmentfault.com/q/10...

回复
likes
适合作为回答的
  • 经过验证的有效解决办法
  • 自己的经验指引,对解决问题有帮助
  • 遵循 Markdown 语法排版,代码语义正确
不该作为回答的
  • 询问内容细节或回复楼层
  • 与题目无关的内容
  • “赞”“顶”“同问”“看手册”“解决了没”等毫无意义的内容