今天在使用fegin远程调用服务的时候服务怎么也启动不了
报这样一个错误
Description:
An attempt was made to call the method com.google.common.collect.FluentIterable.append(Ljava/lang/Iterable;)Lcom/google/common/collect/FluentIterable; but it does not exist. Its class, com.google.common.collect.FluentIterable, is available from the following locations:
jar:file:/C:/Users/XXX/.m2/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:/C:/Users/XXX/.m2/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
找了半天也不知道哪里错了。
然后看了一篇博客解决了,转载分享给大家。原因是因为ribbon和swagger有jar包冲突。感谢大佬。
https://blog.csdn.net/my13413527259/article/details/85779625