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

多元网站深圳北站设计方案

多元网站,深圳北站设计方案,域名什么意思举个例子,在线制作论坛网站转载自 SpringCloud配置中心高可用搭建 本文通过config server连接git仓库来实现配置中心#xff0c;除了git还可以使用svn或者系统本地目录都行。 引入依赖 dependenciesdependencygroupIdorg.springframework.cloud/groupIdartifactId…转载自 SpringCloud配置中心高可用搭建 本文通过config server连接git仓库来实现配置中心除了git还可以使用svn或者系统本地目录都行。 引入依赖 dependenciesdependencygroupIdorg.springframework.cloud/groupIdartifactIdspring-cloud-config-server/artifactId/dependencydependencygroupIdorg.springframework.cloud/groupIdartifactIdspring-cloud-starter-eureka/artifactId/dependency /dependencies spring-cloud-config-server这个就是配置中心server的依赖。 配置中心做到高可用本身也需要向注册中心注册自己的实例所以需求引用spring-cloud-starter-eureka依赖。 添加启动类开启Config Server功能 EnableDiscoveryClient EnableConfigServer SpringBootApplication public class ConfigApplication {public static void main(String[] args) {SpringApplication.run(ConfigApplication.class, args);}} EnableConfigServer即开启配置服务器的功能。 EnableDiscoveryClient开启自动注册客户端默认情况下ServiceRegistry实现将自动注册正在运行的服务。如注册中心使用是Eureka这里也可以使用的EnableEurekaClient注解。 添加Config配置 spring: application:name: config-centerprofiles:active: config-center1cloud: config:server:git:uri: ${git.uri}searchPaths: ${git.searchPaths}username: ${git.username}password: ${git.password}basedir: ${git.basedir}clone-on-start: trueforce-pull: trueeureka:instance: prefer-ip-address: true  instance-id: ${spring.cloud.client.ipAddress}:${server.port}lease-expiration-duration-in-seconds: ${lease-expiration-duration-in-seconds}lease-renewal-interval-in-seconds: ${lease-renewal-interval-in-seconds}client:serviceUrl:defaultZone: ${register-center.urls}--- spring:profiles: config-center1server: port: ${config-center1.server.port}--- spring: profiles: config-center2server: port: ${config-center2.server.port} 这里配置了两台Config Server都注册到了两台注册中心上。 Maven filter配置 #git git.urihttp://gitlab.example.com/test/config.git git.usernameroot git.passwordroot git.searchPathsconfig-center git.basedirf:/config/config-center/git Spring Cloud Git配置详解 spring.cloud.config.server.git.urigit仓库地址。 spring.cloud.config.server.git.searchPathsgit仓库搜索目录。 spring.cloud.config.server.git.username连接git的用户名。 spring.cloud.config.server.git.password连接git的用户名密码。 spring.cloud.config.server.git.basedir配置中心在本地缓存配置的目录。 spring.cloud.config.server.git.clone-on-start配置为true表示启动时就克隆配置缓存到本地。 spring.cloud.config.server.git.force-pull配置为true表示如果本地副本是脏的将使Spring Cloud Config Server强制从远程存储库拉取配置。 启动配置中心 分别启动以下配置中心使用不同的Profile指定端口。 spring-boot:run -Drun.profilesconfig-center1 -P dev spring-boot:run -Drun.profilesconfig-center2 -P dev
http://www.pierceye.com/news/728120/

相关文章:

  • 网站制作要钱吗seo的培训网站哪里好
  • 图片类网站如何做优化装潢设计培训中心
  • 哪里做网站做得好宿迁网站建设sq918
  • 中企动力 网站建设那些网站是做俄罗斯鞋子
  • jsp怎么做购物网站建设营销型网站多少钱
  • 东莞网站设免费的网站程序哪里好
  • 网站主页用ps做免费网站建站有哪些
  • 锦州网站建设公司湘潭市高新建设局施工报建网站
  • 前端网站开发江阴外贸网站建设
  • 手机网站建设的整体流程seo是什么职位的简称
  • 川畅咨询 做网站多少钱注册企业邮箱要钱吗
  • 网站制作成本包含游戏咨询网站建设目标是什么
  • 江门seo网站推广做网站营销怎么去推广
  • 厦门网站建设系统深圳网站建设骏域网站建设
  • 工商网站备案查询建设新农村网站
  • 建筑网站资料排行榜移动互联网的概念是什么
  • 浙江省建设诚信系统网站网上购物哪个网站最好
  • 做网站电销和生活爱辽宁下载安装
  • 安监网站安全建设信息wordpress电影影视主题
  • 网站打不开服务器错误网站怎么设置支付
  • 做网站的宽度为多少云南省建设工程信息服务平台
  • 网站优化公司大家好桂林网络搭建
  • 做a漫画在线观看网站网站建设这个工作怎么样
  • 商城网站建设缺点培训机构退费
  • 大型网站需要什么样的团队建购物网站 教程
  • 商业设计网站推荐网站注册免费qq
  • 做微信首图的网站阿里网站建设App开发
  • .网站链接策略网页制作手机版
  • 河南网站优化要多少钱网站技术有哪些
  • 域名还在备案可以做网站吗高端设计公司名字大全