Springboot integration knife4j/swagger reports an error:
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2020-10-19 10:27:11.485 ERROR 42996 --- [ 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.spring.web.scanners.ApiListingScanner.scan(ApiListingScanner.java:117)
The following method did not exist:
com.google.common.collect.FluentIterable.append(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:/D:/maven/repository/com/google/guava/guava/16.0.1/guava-16.0.1.jar!/com/google/common/collect/FluentIterable.class
It was loaded from the following location:
file:/D:/maven/repository/com/google/guava/guava/16.0.1/guava-16.0.1.jar
Action:
Correct the classpath of your application so that it contains a single, compatible version of com.google.common.collect.FluentIterable
Cause
guava-16.0.1.jar and swagger dependency conflict
Handling method
Add guava dependency and specify the version
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>20.0</version>
</dependency>
Start the project again, you can start normally
Welcome to the guidance of the great god, you can leave a message to communicate!
======================
My original article, reprinted to indicate the discrepancy!
=================