0

configServer 中的 application.properties 文件附在下面
配置客户端很简单,只需用于 dev 和 prod env 的 application.properties。
即使添加了 uri,我也收到以下异常
org.eclipse.jgit.errors.TransportException: https ://github.com/pragathiindran/app-properties.git/ :未授权
org.springframework.cloud.config.server .environment.NoSuchRepositoryException:无法克隆或签出存储库:https ://github.com/pragathiindran/app-properties.git/

spring:
      cloud:
        config:
          server:
            git:
              uri: https://github.com/pragathiindran/app-properties.git/
              basedir: /Users/Z0083B8/Desktop/configServer/app-property/
              skipSslValidation: true
              search-paths: '{application}/{profile}'
        bus:
          enabled: true
    
    spring.cloud.bus.refresh.enabled: true
    spring.cloud.bus.env.enabled: true
    endpoints.spring.cloud.bus.refresh.enabled: true
    endpoints.spring.cloud.bus.env.enabled: true
    
    spring.cloud.stream.kafka.binder.autoAddPartitions: true
    
    server:
      port: 8888
    
    management:
      security:
        enabled: false
4

0 回答 0