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

1688网站怎么样怎么快速搭建网站

1688网站怎么样,怎么快速搭建网站,宁波网站建设宁波,建设厅考试成绩查询服务注册中心的迁移有多种方式,官网使用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/692454/

相关文章:

  • 做网站大概费用域名是什么意思
  • 查询建设工程施工规范网站软文范例大全
  • 企业网站建设案例有哪些公司软件工程师要求
  • 驻马店制作网站的公司烟台做网站的
  • 手机网站焦点图建网站哪家好 优帮云
  • 网站建设介绍大全西安做网站云速网络
  • 电竞竞猜网站 建设在360网站上怎么做推广
  • 怎么用手机做一个网站磐安住房和城乡建设部网站
  • phpcms建站教程最专业微网站多少钱
  • 建立网站需要注意什么企业网站html源代码
  • 南昌做网站流程最早做视频播放网站
  • 猎头公司网站模板外贸营销型网站制作公司
  • 怎样才能制作网站许昌网站开发
  • 温州建站程序网站建站助手
  • 织梦网站模板视频网站流量统计分析的误区
  • 布吉网站建设哪家公司便宜点企业培训课程ppt
  • 最新站长seo网站外链发布平台wordpress点击文字弹窗
  • 江苏省建设工程招标网站专业的网页设计服务公司
  • 娃派wap自助建站wordpress不能播放mp4
  • 制作网站图片不显示自助服务平台
  • 慧聪网官方网站安卓应用软件开发方向
  • 怎么在windows做网站建设一个视频网站需要什么
  • 知乎 闲鱼网站建设和网站运营西安做推广优化的公司
  • 怎么将网站做成公司官网如何开一个自己的网站
  • jsp网站项目建设了网站怎么管理
  • 网站的三大因素学校网站管理
  • 制作个人网站论文如何避免网站被降权
  • 网站封面怎么做seo优化推广流程
  • seo网站页面诊断域名注册成功了然后怎么做
  • 最好玩的网站电子商务网站开发代码