V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
rapperx2
V2EX  ›  问与答

谁遇见过 SpringCloud 的这样的坑

  •  
  •   rapperx2 · 2019-07-17 10:07:04 +08:00 · 1362 次点击
    这是一个创建于 1737 天前的主题,其中的信息可能已经有所发展或是发生改变。

    'org.springframework.web.client.RestClientException: Could not extract response: no suitable HttpMessageConverter found for response type [com.hmc.utils.RestResp<com.hmc.vo.driver.IndexDataVo>] and content type [application/json;charset=UTF-8] at org.springframework.web.client.HttpMessageConverterExtractor.extractData(HttpMessageConverterExtractor.java:119) ~[spring-web-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.springframework.cloud.openfeign.support.SpringDecoder.decode(SpringDecoder.java:60) ~'

    fegin 调用提供者 返回一个对象没问题,多个对象就报错,求大佬帮忙,解决下问题,谢谢

    1 条回复    2019-07-17 17:00:52 +08:00
    AlkTTT
        1
    AlkTTT  
       2019-07-17 17:00:52 +08:00
    老铁,你对象序列化了吗
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   994 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 22:13 · PVG 06:13 · LAX 15:13 · JFK 18:13
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.