Spring Cloud Configuration Server not working with local properties file

后端 未结 9 2170
渐次进展
渐次进展 2020-12-05 07:43

I have been playing around with the Spring Cloud project on github located here: https://github.com/spring-cloud/spring-cloud-config

However I have been running into

9条回答
  •  無奈伤痛
    2020-12-05 08:33

    I was able to get it work with local repo and bootstrap configuration:

    java -jar spring-cloud-config-server-1.0.0.M3-exec.jar --spring.config.name=bootstrap
    

    The bootstrap.yml file is placed in ./config/ folder.

    server:
      port: 8080
    spring:
      config:
        name: cfg_server
      cloud:
        config:
          server:
           git:
            uri: /home/us/config_repo
            searchPaths: pmsvc,shpsvc
    

提交回复
热议问题