关于springcloud config访问不到github资源的问题:
尝试将application中uri修改为https或则ssl都无法成功。
主启动类上也添加了@EnableConfigServer注解
(1)以下的代码为applicaiton的配置:
server:
port: 3344
spring:
profiles:
active: native
application:
name: cloud-config-center
cloud:
config:
server:
git:
uri: git@github.com:ZXTAO123/studyhard.git
search-paths:
- studyhard
#读取分支
label: master
#服务注册中心祖册到eureka
eureka:
client:
service-url:
defaultZone: http://eureka7001.com:7001/eureka/,http://eureka7002.com:7002/eureka/
(2)以下为github仓库信息【为公开public】:
(3)以下为浏览器访问得到信息【无法访问到yml文件】