当前位置:网站首页>调用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超时调用
边栏推荐
猜你喜欢
随机推荐
信息学奥赛一本通T1447:靶形数独
Embedding two implementations of the torch code
【卫朋】硬件创业:营销与开发同行
npx 有什么作用跟意义?为什么要有 npx?什么场景使用?
Umi 4 快速搭建项目
UniApp 获取当前页面标题(navigationBarTitleText)
pyspark df 二次排序
hashSet解析
torch.nn.modules.activation.ReLU is not a Module subclass
MySQL - 视图操作
关于Attention的超详细讲解
keepalived安装部署
nacos-2.0.3启动报错出现no datasource set的坑
Multi-Head-Attention principle and code implementation
Scala 基础 (三):运算符和流程控制
开放域OOD主要数据集、评价指标汇总
现货黄金分析的主要流派
C语言实现通讯录功能(400行代码实现)
第五章:指令集
学会可视化大屏布局技巧,让领导都赞不绝口