带有github后端的Spring Cloud配置

时间:2019-10-25 18:57:25

标签: spring spring-boot spring-cloud spring-cloud-netflix spring-cloud-config

我正在努力解决此问题。 我正在尝试将Spring cloud-config与github repo一起使用,但它没有获取任何配置。 该服务器可以在基于文件的配置下正常运行,但不能在GIT上运行。

spring:
  profiles:
    active: native
  cloud:
    config:
      discovery:
        enabled: false
      server:
          git:
            uri: https://github.com/${GIT_USER}/config-server
            searchPaths: organizationservice,personservice,zuulservice
            username: ${GIT_USER}
            password: ${GIT_PASS}
            skipSslValidation: true
            cloneOnStart: true

启动和云版本

    springBootVersion = '2.1.7.RELEASE'
    springCloudVersion= "Greenwich.SR2"

0 个答案:

没有答案