(Translated by https://www.hiragana.jp/)
GitHub - nine-cloudify/cloudify: Spring Cloud fly
Skip to content

nine-cloudify/cloudify

Repository files navigation

cloudify

ふく务治

ちゅうさつ中心ちゅうしん

eureka-server

spring:
  application:
    name: eureka-server

server:
  port: 11001

eureka:
  instance:
    hostname: localhost
  client:
    registerWithEureka: false
    fetchRegistry: false
    serviceUrl:
      defaultZone: http://${eureka.instance.hostname}:${server.port}/eureka/

eureka-client

eureka:
  instance:
    hostname: localhost
  client:
    serviceUrl:
      eureka-server-port: 11001
spring:
  application:
    name: eureka-client

server:
  port: 12001

eureka:
  client:
    serviceUrl:
      defaultZone: http://${eureka.instance.hostname}:${eureka.client.serviceUrl.eureka-server-port}/eureka/

eureka-consumer

eureka:
  instance:
    hostname: localhost
  client:
    serviceUrl:
      eureka-server-port: 11001
spring:
  application:
    name: eureka-consumer

server:
  port: 13001

eureka:
  client:
    serviceUrl:
      defaultZone: http://${eureka.instance.hostname}:${eureka.client.serviceUrl.eureka-server-port}/eureka/

分布ぶんぷしき配置はいち中心ちゅうしん

配置はいち仓库

配置はいち中心ちゅうしん

spring:
  application:
    name: config-server
  cloud:
    config:
      server:
        git:
          uri: git@github.com:SpringCloudify/config-repo-demo.git
server:
  port: 

きゃく户端

application.yaml

spring:
  application:
    name: config-client

server:
  port: 13001

bootstrap.yaml

spring:
  cloud:
    config:
      name: config-client
      uri: http://localhost:12001/
      profile: defualt
      label: master
  • spring.application.name:对应配置はいちぶんけん规则ちゅうてき{application}部分ぶぶん
  • spring.cloud.config.profile:对应配置はいちぶんけん规则ちゅうてき{profile}部分ぶぶん
  • spring.cloud.config.label:对应配置はいちぶんけん规则ちゅうてき{label}部分ぶぶん
  • spring.cloud.config.uri配置はいち中心ちゅうしんconfig-serverまと