私は自分の jar の外から入れようとしてbootstrap.propertiesいるので、他の開発者が誤って上書きすることはありません。ここでアドバイスをいただけませんか?
これはそのコンテンツです-Springサーバー構成に向けます
# application name
spring.application.name=elixium
# The server entry point
spring.cloud.config.uri=http://localhost:8888
私は自分の jar の外から入れようとしてbootstrap.propertiesいるので、他の開発者が誤って上書きすることはありません。ここでアドバイスをいただけませんか?
これはそのコンテンツです-Springサーバー構成に向けます
# application name
spring.application.name=elixium
# The server entry point
spring.cloud.config.uri=http://localhost:8888
Spring Cloud は、Spring Boot と同じ場所をbootstrap.properties使用して(または)検索します.yml。デフォルトclasspath:,classpath:/config,file:,file:config/の検索パスも同様./config/で、優先順位が最も高くなります。あなたのファイルが入っている./configか、./それがうまくいくはずです。場所を変更するプロパティ ( spring.cloud.bootstrap.location)は、ブートとは少し異なります。