Spring Cloud Configuration Server not working with local properties file

后端 未结 9 2189
渐次进展
渐次进展 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:38

    I had the same problem when running the Configuration Server in Mac OS environment. This did not happen in Linux or Windows.

    I had the native property set in the bootstrap.yml file like this:

    spring:
      profiles:
        active: native
    

    Finally the way it worked for me on the mac was to pass the active profile to the jar file, like this.

    java -jar config-server.jar --spring.profiles.active=native
    

    I still don't know why it behaves differently in Mac OS.

提交回复
热议问题