引入swagger2导致的问题
以下出错的解决办法:
Action:
Correct the classpath of your application so that it contains compatible versions of the classes springfox.documentation.schema.DefaultModelDependencyProvider and com.google.common.collect.FluentIterable
很明显是依赖冲突带来的问题。
查看依赖:
可以看到冲突的地方画了红线
接下来就是排除依赖:
<dependency> <groupId>com.github.binarywang</groupId> <artifactId>java-emoji-converter</artifactId> <version>0.1.1</version> <exclusions> <exclusion> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> </exclusion> </exclusions> </dependency>
文章评论