当前位置:网站首页>调用feign报错openfeign/feign-core/10.4.0/feign-core-10.4.0.jar
调用feign报错openfeign/feign-core/10.4.0/feign-core-10.4.0.jar
2022-08-03 06:12:00 【wang0112233】
引用fegin报错
Description:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
com.betterwood.common.config.feign.FeignConfigure.options(FeignConfigure.java:37)
The following method did not exist:
feign.Request$Options.<init>(JLjava/util/concurrent/TimeUnit;JLjava/util/concurrent/TimeUnit;Z)V
The method's class, feign.Request$Options, is available from the following locations:
jar:file:/E:/maven-3.8.1/repository/io/github/openfeign/feign-core/10.4.0/feign-core-10.4.0.jar!/feign/Request$Options.class
The class hierarchy was loaded from the following locations:
feign.Request.Options: file:/E:/maven-3.8.1/repository/io/github/openfeign/feign-core/10.4.0/feign-core-10.4.0.jar
Action:
Correct the classpath of your application so that it contains a single, compatible version of feign.Request$Options
版本冲突
我的springboot 版本是2.3.7.RELEASE,springcloud版本是Hoxton.RELEASE
去除10.4.0版本
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
<exclusions>
<exclusion>
<artifactId>feign-core</artifactId>
<groupId>io.github.openfeign</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
单独增加10.5.1版本
<dependency>
<groupId>io.github.openfeign</groupId>
<artifactId>feign-core</artifactId>
<version>10.5.1</version>
</dependency>
注意pom中有没有排除ribbon的,要删除
查看配置文件,是否有进行feign单独处理的,如feign超时调用
边栏推荐
猜你喜欢
随机推荐
阿里云-武林头条-建站小能手争霸赛
C语言版本和GCC版本
线程基础(二)
CCF NOI 2022笔试题库
关于Attention的超详细讲解
Cesium加载离线地图和离线地形
保姆级讲解Transformer
El - tree set using setCheckedNodessetCheckedKeys default check nodes, and a new check through setChecked specified node
信息学奥赛一本通T1448:深搜的剪枝技巧 电路维修
pyspark df 二次排序
异常检测 IsolationForest 返回概率
IFM network detailed explanation and torch reproduction
Scala 基础 (三):运算符和流程控制
最新版图书馆招聘考试常考试题重点事业单位
JS 预编译
力扣解法汇总622-设计循环队列
jvm 面试题
贷中存量客户的价值挖掘与分类实现,试试这一重要的场景模型
el-tree设置选中高亮焦点高亮、选中的节点加深背景,更改字体颜色等
nacos-2.0.3启动报错出现no datasource set的坑