当前位置:网站首页>调用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超时调用
边栏推荐
猜你喜欢
随机推荐
empty() received an invalid combination of arguments - got (tuple, dtype=NoneType, device=NoneType),
pyspark @udf 循环使用变量问题
CCF NOI 2022笔试题库
Charles capture shows
solution pyspark --- 空串替换为None
MySQL忘记密码怎么办
Basic syntax of MySQL DDL and DML and DQL
信息学奥赛一本通T1450:Knight Moves
pyspark---低频特征处理
npx 有什么作用跟意义?为什么要有 npx?什么场景使用?
Scala 高阶(七):集合内容汇总(上篇)
Nacos单机模式的安装与启动
学会可视化大屏布局技巧,让领导都赞不绝口
异常检测 IsolationForest 返回概率
解决登录vCenter提示“当前网站安全证书不受信任“
spark中的cache和checkpoint
unity 摄像机旋转拖拽缩放场景
第四章:架构,Architecture
Autowired注解与Resource注解的区别
Detailed explanation of AutoInt network and pytorch reproduction