第一步: 2个jar

springcloud统一配置中心(1)springcloud统一配置中心(1)

第二步: 配置

@SpringBootApplication
@EnableDiscoveryClient
@EnableConfigServer
spring:
  application:
    name: config
  cloud:
    config:
      server:
        git:
          uri: https://gitee.com/o1pener10211/micro_service
          username: ****
          password: ****
eureka:
  client:
    serviceUrl:
      defaultZone: http://localhost:8761/eureka/

springcloud统一配置中心(1)

第三步 git仓库

springcloud统一配置中心(1)

**第四步 访问git上的配置文件

如果是demo.yml,,,访问就是localhost/demo-a.yml
springcloud统一配置中心(1)

相关文章:

  • 2022-12-23
  • 2021-08-08
  • 2022-01-17
  • 2021-10-25
  • 2021-12-24
  • 2021-05-09
  • 2021-04-18
  • 2021-08-19
猜你喜欢
  • 2021-12-20
  • 2021-11-15
  • 2022-01-18
  • 2021-11-19
  • 2022-12-23
  • 2021-05-24
  • 2022-01-19
相关资源
相似解决方案