我正在努力解决此问题。 我正在尝试将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"