当前位置: 首页 > news >正文

关岭做网站做设计在哪个网站找图片

关岭做网站,做设计在哪个网站找图片,焦作整站优化,网站开发培训费多少钱服务注册中心的迁移有多种方式,官网使用nacos sync,还有民间开发的双注册中心组件eureka-nacos-proxy,但是我用了不太顺利,所以用的是阿里巴巴的双注册中心组件edas-sc-migration-starter spring boot:2.5.3 引入依赖 …

服务注册中心的迁移有多种方式,官网使用nacos sync,还有民间开发的双注册中心组件eureka-nacos-proxy,但是我用了不太顺利,所以用的是阿里巴巴的双注册中心组件edas-sc-migration-starter

spring boot:2.5.3

  1. 引入依赖
<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
</dependency>
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
    <groupId>com.alibaba.cloud</groupId>
    <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
    <version>2.0.4.RELEASE</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.alibaba.cloud/spring-cloud-starter-alibaba-nacos-config -->
<dependency>
    <groupId>com.alibaba.cloud</groupId>
    <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
    <version>2.0.4.RELEASE</version>
</dependency>
<dependency>
    <groupId>com.alibaba.edas</groupId>
    <artifactId>edas-sc-migration-starter</artifactId>
    <version>1.0.2</version>
</dependency>
  1. 正常启动即可发现两边都已经注册

  2. 如果要用open feign,需要在启动类排除ribbon自动配置,否则服务间调用会报错

alt
2021-08-18 16:00:58.368 ERROR 351892 --- [nio-8081-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Handler dispatch failed; nested exception is java.lang.AbstractMethodError: org.springframework.cloud.netflix.ribbon.RibbonLoadBalancerClient.choose(Ljava/lang/String;Lorg/springframework/cloud/client/loadbalancer/Request;)Lorg/springframework/cloud/client/ServiceInstance;] with root cause

java.lang.AbstractMethodError: org.springframework.cloud.netflix.ribbon.RibbonLoadBalancerClient.choose(Ljava/lang/String;Lorg/springframework/cloud/client/loadbalancer/Request;)Lorg/springframework/cloud/client/ServiceInstance;
 at org.springframework.cloud.openfeign.loadbalancer.FeignBlockingLoadBalancerClient.execute(FeignBlockingLoadBalancerClient.java:88) ~[spring-cloud-openfeign-core-3.0.3.jar:3.0.3]

点进去可以看到 应该是负载均衡时选择服务出现错误

alt

解决方案1. 在启动类屏蔽ribbon自动配置类

alt

此时feign会默认调用nacos的服务

alt

方案2. 阿里云官网看的,但是我试了会报另一个错误,所以就采用方案1

alt

本文由 mdnice 多平台发布

http://www.yayakq.cn/news/381118/

相关文章:

  • 做logo设计网站自己的网站做app
  • 曲靖高端网站制作深圳的设计企业网站
  • 海南七星彩网站开发wordpress表格自适应
  • 网站怎么做自然优化中国纪检监察报网
  • 网站流量 龙优化软件wordpress域名资源地址
  • 乌海做网站濮阳今天确诊名单
  • 湛江网站制作江网站制作局域网站点建设方案
  • 深圳龙岗个人网站建设建设企业网站官网企业
  • 红酒购物网站源码村级网站模板
  • 免费自助开通网站河南郑州建设网站
  • 高新西区网站建设上国外网站用什么dns
  • 网站建设 力洋网络广州商务网站建设
  • 深圳建设商城网站好网站建设公司地址
  • 网站如何做搜索引擎优化百度一下你就知道官网
  • 淘宝客网站建设要注意什么自学网站建设要多久
  • 微信小程序介绍杭州网站优化排名
  • 门户网站后台管理系统模板建安培训官网
  • 一个空间能放几个网站专门做招商的网站是什么情况
  • 宜昌外贸网站建设优化推广家装公司名称
  • 比较大的做网站的公司有哪些手机wap网站的分析
  • 做内网网站建网站公司是如何赚钱
  • php 网站换空间兰溪优秀高端网站设计地址
  • 重庆高铁建设网站有没有网站做字体变形
  • 广州网站开发方案wordpress jquery cdn
  • 邯郸网站制作基本流程山西seo推广系统
  • 网站正在建设中mp4jsp做简单校园网站
  • 做阿里巴巴网站 店铺装修免费吗医疗网站如何做优化
  • 网站首页倒计时功能怎么做我的世界做图片的网站
  • wordpress换空间 403东莞seo外包
  • 免费国外网站汽车销售网站建设