当前位置: 移动技术网 > IT编程>开发语言>Java > SpringCloud微服务(Fegin负载均衡遇到的问题和解决方案)

SpringCloud微服务(Fegin负载均衡遇到的问题和解决方案)

2020年08月01日  | 移动技术网IT编程  | 我要评论
附录Completed shut down of DiscoveryClientYou already have RibbonLoadBalancerClient on your classpath. It will be used by default. As Spring Cloud Ribbon is in maintenance mode. We recommend switching to BlockingLoadBalancerClient instead. In orde...

Completed shut down of DiscoveryClient

You already have RibbonLoadBalancerClient on your classpath. It will be used by default. As Spring Cloud Ribbon is in maintenance mode. We recommend switching to BlockingLoadBalancerClient instead. In order to use it, set the value of `spring.cloud.loadbalancer.ribbon.enabled` to `false` or remove spring-cloud-starter-netflix-ribbon from your project.


原因:缺少web依赖

<dependency>

   <groupId>org.springframework.boot</groupId>

   <artifactId>spring-boot-starter-web</artifactId>

</dependency>

负载均衡失败

2020-08-11 14:37:20.331 ERROR 17764 --- [nio-8083-exec-2] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is feign.codec.DecodeException: Could not extract response: no suitable HttpMessageConverter found for response type [java.util.List<java.lang.Object>] and content type [text/plain;charset=UTF-8]] with root cause


原因:编写逻辑代码返回类型未对应

本文地址:https://blog.csdn.net/qq_37334150/article/details/108254914

如您对本文有疑问或者有任何想说的,请点击进行留言回复,万千网友为您解惑!

相关文章:

验证码:
移动技术网