简体   繁体   English

spring支持从spring cloud config / http url加载bootstrap.yml文件吗?

[英]Does spring support loading bootstrap.yml file from spring cloud config/http url?

Does spring support loading bootstrap.yml file from spring cloud config/http url? spring支持从spring cloud config / http url加载bootstrap.yml文件吗? Or does it require the bootstrap file to be present in the classpath? 或者它是否需要引导文件存在于类路径中?

bootstrap.yml cannot be loaded from the Spring Cloud Config Server. 无法从Spring Cloud Config Server加载bootstrap.yml bootstrap.yml gets used to populate the bootstrap context, which in turn is used to populate the application context with the configuration properties coming from Spring Cloud Config Server. bootstrap.yml用于填充bootstrap上下文,而后者又用于使用来自Spring Cloud Config Server的配置属性填充应用程序上下文。 bootstrap.yml must be available to the Spring Boot application locally (classpath, local file...). bootstrap.yml必须在本地可用于Spring Boot应用程序(classpath,本地文件...)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM