Changing the Location of Bootstrap Properties

bootstrap.yml (or .properties) 的位置可以通过使用spring.cloud.bootstrap.name (default "bootstrap") 来指定,例如在System properties中指定,这些属性的名字为spring.config.*,通过在环境中指定这些属性来启动bootstrap应用上下文。如果存在一个可用的profile(spring.profiles.active属性,或者通过上下文的环境api)那么将会加载在这个profile的属性。与spring boot相同,例如,"development" profile会加载bootstrap-development.properties中的属性

results matching ""

    No results matching ""