application.yml:
server:
port: 9000
spring:
cloud:
config:
server:
git:
uri: git@github.com: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
spring.cloud.config.server.git.uri=git@github.com: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