当前位置:网站首页>调用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超时调用
边栏推荐
- MySQL忘记密码怎么办
- pyspark @udf 循环使用变量问题
- 10 分钟彻底理解 Redis 的持久化和主从复制
- 华为设备配置BFD单跳检测二层链路
- el-table gets the data attribute of a row in the read data table
- 伦敦银现货市场如何使用多条均线?
- MySQL的 DDL和DML和DQL的基本语法
- empty() received an invalid combination of arguments - got (tuple, dtype=NoneType, device=NoneType),
- Cesium loads offline maps and offline terrain
- 编程语言有什么
猜你喜欢
随机推荐
el-tree设置利用setCheckedNodessetCheckedKeys默认勾选节点,以及通过setChecked新增勾选指定节点
10 分钟彻底理解 Redis 的持久化和主从复制
Flink对比Spark
el-tree设置选中高亮焦点高亮、选中的节点加深背景,更改字体颜色等
连续型特征做embedding代码示例
MySQL 日期时间类型精确到毫秒
Cesium加载离线地图和离线地形
信息学奥赛一本通T1446:素数方阵
keepalived安装部署
npx 有什么作用跟意义?为什么要有 npx?什么场景使用?
el-table实现列筛选功能,控制列的显示和隐藏(实现简单,效果满分)
Multi-Head-Attention principle and code implementation
华为设备配置BFD单跳检测二层链路
pyspark df 二次排序
关于NOI 2022的报到通知
El - tree set using setCheckedNodessetCheckedKeys default check nodes, and a new check through setChecked specified node
Embedding two implementations of the torch code
2021年PHP-Laravel面试题问卷题 答案记录
CCF NOI 2022笔试题库
第五章:指令集









