Erro de knack4j / swagger integrado do Springboot:
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
Causa
conflito de dependência guava-16.0.1.jar e swagger
Método de manuseio
Adicione a dependência de goiaba e especifique a versão
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>20.0</version>
</dependency>
Comece o projeto novamente, você pode começar normalmente
Bem-vindo à orientação do grande deus, você pode deixar uma mensagem para se comunicar!
========================
Meu artigo original, reimpresso para indicar a discrepância!
=================