当前位置:网站首页>调用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的DATE_FORMAT()函数将Date转为字符串

MySQL 操作语句大全(详细)

El - table column filter functions, control columns show and hide (effect and easy to implement full marks)

torch.nn.modules.activation.ReLU is not a Module subclass

MySQL的on duplicate key update 的使用

(十五)51单片机——呼吸灯与直流电机调速(PWM)

IEEE RAL投初稿

CISP-PTE真题演示
随机推荐
MySQL 操作语句大全(详细)
力扣解法汇总622-设计循环队列
第六章:存储系统
Flink的Exactly-Once、状态机制、watermark机制
【playwright】pytest-playwright增加代理服务选项
Docker-compose安装mysql
【Shell】3万字图文讲解带你快速掌握shell脚本编程
信息学奥赛一本通T1450:Knight Moves
学会可视化大屏布局技巧,让领导都赞不绝口
El - tree to set focus on selected highlight highlighting, the selected node deepen background and change the font color, etc
CISP-PTE真题演示
Nacos下载与安装
神经网络原理及代码实现
JS 原型原型链
Flutter | 判断 Text 组件是否显示完
unity 摄像机旋转拖拽缩放场景
Spark 的架构与作业提交流程
(十五)51单片机——呼吸灯与直流电机调速(PWM)
MySQL的on duplicate key update 的使用
qt学习之旅--MinGW编译FFmpeg(32bit)