Spring Cloud Config Server基于本地git使用SSH clone github repository

application.yml:
server:
  port: 9000
spring:
  cloud:
    config:
      server:
        git:
          uri: [email protected]:yourgitaccout/you_project.git
          passphrase: your_ssh_rsa_password
          search-paths: cloud-config-repo
          clone-on-start: true
          force-pull: true #set force-pull to true, since Spring Cloud can not fetch and pull the latest version from remote git repositories
management:
  security:
    enabled: false

application.properties:

server.port=9000
[email protected]:your_git_account/your_project.git
spring.cloud.config.server.git.passphrase=your_ssh_rsa_password
spring.cloud.config.server.git.search-paths=cloud-config-repo
spring.cloud.config.server.git.force-pull=true
spring.cloud.config.server.git.clone-on-start=true
management.security.enabled=false



你可能感兴趣的:(Spring,Cloud,Spring,Cloud,Config,Server)