springcloud config无法访问到github资源

关于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】:

img

(3)以下为浏览器访问得到信息【无法访问到yml文件】

img

这篇文章:springcloud config配置中心集成GitHub搭建 也许能够解决你的问题,你可以看下

问题已经解决:
去掉application中的spring-profiles-active : native就可以正常访问了