bootstrap配置
bootstrap的配置是在BootstrapApplicationListener中实现的,通过ApplicationEnvironmentPreparedEvent事件进行触发
1 | ConfigurableEnvironment environment = prepareEnvironment(listeners, applicationArguments); |
可以使用spring.cloud.bootstrap.enabled
来禁用bootstrap
1 | if (!environment.getProperty("spring.cloud.bootstrap.enabled", Boolean.class, |