码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • 调用feign报错openfeign/feign-core/10.4.0/feign-core-10.4.0.jar


    引用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.(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版本

    1. <dependency>
    2. <groupId>org.springframework.cloudgroupId>
    3. <artifactId>spring-cloud-starter-openfeignartifactId>
    4. <exclusions>
    5. <exclusion>
    6. <artifactId>feign-coreartifactId>
    7. <groupId>io.github.openfeigngroupId>
    8. exclusion>
    9. exclusions>
    10. dependency>
    11. <dependency>

    单独增加10.5.1版本

    1. <dependency>
    2. <groupId>io.github.openfeigngroupId>
    3. <artifactId>feign-coreartifactId>
    4. <version>10.5.1version>
    5. dependency>

    注意pom中有没有排除ribbon的,要删除

     查看配置文件,是否有进行feign单独处理的,如feign超时调用

  • 相关阅读:
    EOS密钥被盗后如何恢复?
    关于RabbitMQ你了解多少?
    DM内存管理
    APMCM历年题目汇总
    如何解决版本不兼容Jar包冲突问题
    vue3初体验-基于vue3+ant design封装公共弹框
    先进的管理技术将其转化成为有机的、高效的商业模式的管理集成
    [附源码]JAVA毕业设计交通事故档案管理系统(系统+LW)
    【CV】第 2 章:使用本地二进制模式的内容识别
    SaaSBase:什么是企域数科?
  • 原文地址:https://blog.csdn.net/wang0112233/article/details/126116933
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号