maven项目的依赖项目包存在冲突时,回报maven依赖java冲突的bug
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2020-06-14 13:01:25.426 ERROR 24868 --- [ 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:
springfox.documentation.schema.DefaultModelDependencyProvider.dependentModels(DefaultModelDependencyProvider.java:79)
The following method did not exist:
com.google.common.collect.FluentIterable.concat(Ljava/lang/Iterable;Ljava/lang/Iterable;)Lcom/google/common/collect/FluentIterable;
The method's class, com.google.common.collect.FluentIterable, is available from the following locations:
jar:file:/C:/Users/user/.m2/repository/com/google/guava/guava/18.0/guava-18.0.jar!/com/google/common/collect/FluentIterable.class
It was loaded from the following location:
file:/C:/Users/user/.m2/repository/com/google/guava/guava/18.0/guava-18.0.jar
Action:
Correct the classpath of your application so that it contains a single, compatible version of com.google.common.collect.FluentIterable
此时需要引进idea的maven helper插件,查看为什么冲突,那个jar包的依赖冲突了。
第一步:下载并安装maven helper
第二步:检查什么冲突
第三步:删除不必要的jar包或者替换掉版本即可,点击reimport检查是否还存在冲突