Correct the classpath of your application so that it contains a single, compatible version of feign.

今天使用feign调用的时候,报了一个错,莫名其妙的

但是看错误很明显是jar包冲突或者jar包版本不对,

后来发现是我 的父pom文件里有个

<dependency>
   <groupId>io.github.openfeign</groupId>
   <artifactId>feign-core</artifactId>
   <version>9.3.1</version>
</dependency>

而我的子pom文件里是10.2.3版本的

都统一成10.2.3版本再启动就ok了

发布了40 篇原创文章 · 获赞 15 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/lvxiucai/article/details/100537372
今日推荐