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

网站超级链接建设工程质量管理条例2022

网站超级链接,建设工程质量管理条例2022,松江新城建设有限公司网站,云南网站推广优化定义#xff1a;EnableEurekaServer注解是Spring Cloud中的一个注解#xff0c;用于将Spring Boot应用程序指定为Eureka服务器。 Eureka服务器是一个服务注册中心#xff0c;也被称为发现服务器#xff0c;管理和协调微服务。保存有关所有客户端服务应用程序的信息。 每个…定义EnableEurekaServer注解是Spring Cloud中的一个注解用于将Spring Boot应用程序指定为Eureka服务器。 Eureka服务器是一个服务注册中心也被称为发现服务器管理和协调微服务。保存有关所有客户端服务应用程序的信息。 每个微服务都会注册到Eureka服务器然后Eureka服务器就知道每个端口和IP地址上运行的所有客户端应用程序。 使用 在Spring Boot应用程序的主类(启动类)中添加EnableEurekaServer注解就可以启动一个Eureka服务器。默认端口号8761 注解的源代码 // // Source code recreated from a .class file by IntelliJ IDEA // (powered by FernFlower decompiler) //package org.springframework.cloud.netflix.eureka.server;import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import org.springframework.context.annotation.Import;Target({ElementType.TYPE}) Retention(RetentionPolicy.RUNTIME) Documented Import({EurekaServerMarkerConfiguration.class}) public interface EnableEurekaServer { } EurekaServerMarkerConfiguration.class源码 // // Source code recreated from a .class file by IntelliJ IDEA // (powered by FernFlower decompiler) //package org.springframework.cloud.netflix.eureka.server;import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration;Configuration(proxyBeanMethods false ) public class EurekaServerMarkerConfiguration {public EurekaServerMarkerConfiguration() {}Beanpublic EurekaServerMarkerConfiguration.Marker eurekaServerMarkerBean() {return new EurekaServerMarkerConfiguration.Marker();}class Marker {Marker() {}} } 源码分析 1.EnableEurekaServer 注解直接导入了配置类EurekaServerMarkerConfiguration,而这个配置类中向spring容器中注册了一个EurekaServerMarkerConfiguration的Bean。 这个注解可以看作是一个开关开启时会激活相关配置去作为注册中心。 2.EurekaServerMarkerConfiguration配置类中向容器中注入了一个类EurekaServerMarkerConfiguration.Marker用来激活配置类。 总结在Spring Cloud中当你需要使用Eureka注册中心的时候需要在Eureka的服务端启动类上添加EnableEurekaServer注解 【用于激活Eureka服务器相关配置将项目作为Spring Cloud中的注册中心让Eureka服务器能正常运行提供服务发现的功能】
http://www.dnsts.com.cn/news/194114.html

相关文章:

  • 怀柔成都网站建设wordpress 1核2g的服务器卡
  • 怎么自己创立网站竞价推广教程
  • 中国建设银行网站查询密码网站内怎样做关键词有效果
  • 百度搜索 网站图片手机网站模板 学校
  • 怎么做快递网站的分点国外网站顶部菜单设计
  • 坂田杨美企业网站建设购物网站怎么做SEO
  • 怎么注册网站电商app排名300
  • 中国建设银行官网站积分抽奖信誉好的永州网站建设
  • 佛山网站定制门户网站开源
  • 做购物网站小图标关注公众号一单一结兼职app
  • 沈阳德泰诺网站建设网上书城网站开发背景
  • 连云港规划建设网站深圳招聘官网
  • 提高网站的用户体验度怒江网站制作
  • 做网站需要美工吗wordpress修改社交标签
  • 天津网站建设如何海外cdn
  • 亚马逊网站建设特点哪些网站可以做淘宝基础销量
  • 网站推广营销怎么做wordpress 固定连接
  • 怎么做动漫照片下载网站萧山网页设计
  • 天津建设银行东丽网站aso优化师
  • 搞一个网站多少钱3合一网站怎么做
  • 百度收录网站入口桓台响应式网站建设
  • 光泽县规划建设局网站霞山网站开发公司
  • 哈尔滨seo整站优化remix做歌网站
  • 网站开发亿码酷流量怎么做钓鱼网站吗
  • 哪个网站可以做图片网站安全狗 fastcgi
  • 吉林网站建设企业精准营销英文
  • 2018网站建设合同范本空壳公司一年的费用
  • 爱站小工具圣经react做的电商网站能上线吗
  • 网站如何备案 流程wordpress 文件全文检索
  • 印刷 技术支持 东莞网站建设汕头达濠