接口的使用
org.springframework.boot.ConfigurableBootstrapContext
程序包
说明
Core Spring Boot classes.
External configuration support allowing 'application.properties' to be loaded and used
within a Spring Boot application.
ApplicationEvents triggered by
Spring Boot.Spring
Environment support.-
org.springframework.boot中ConfigurableBootstrapContext的使用
修饰符和类型方法说明default voidSpringApplicationRunListener.environmentPrepared(ConfigurableBootstrapContext bootstrapContext, ConfigurableEnvironment environment) Called once the environment has been prepared, but before theApplicationContexthas been created.default voidSpringApplicationRunListener.starting(ConfigurableBootstrapContext bootstrapContext) Called immediately when the run method has first started. -
org.springframework.boot.context.config中ConfigurableBootstrapContext的使用
修饰符和类型方法说明ConfigDataLoaderContext.getBootstrapContext()Provides access to theConfigurableBootstrapContextshared across allEnvironmentPostProcessors.ConfigDataLocationResolverContext.getBootstrapContext()Provides access to theConfigurableBootstrapContextshared across allEnvironmentPostProcessors.修饰符和类型方法说明static voidConfigDataEnvironmentPostProcessor.applyTo(ConfigurableEnvironment environment, ResourceLoader resourceLoader, ConfigurableBootstrapContext bootstrapContext, String... additionalProfiles) ApplyConfigDatapost-processing to an existingEnvironment.static voidConfigDataEnvironmentPostProcessor.applyTo(ConfigurableEnvironment environment, ResourceLoader resourceLoader, ConfigurableBootstrapContext bootstrapContext, Collection<String> additionalProfiles) ApplyConfigDatapost-processing to an existingEnvironment.static voidConfigDataEnvironmentPostProcessor.applyTo(ConfigurableEnvironment environment, ResourceLoader resourceLoader, ConfigurableBootstrapContext bootstrapContext, Collection<String> additionalProfiles, ConfigDataEnvironmentUpdateListener environmentUpdateListener) ApplyConfigDatapost-processing to an existingEnvironment.限定符构造器说明ConfigDataEnvironmentPostProcessor(DeferredLogFactory logFactory, ConfigurableBootstrapContext bootstrapContext) -
org.springframework.boot.context.event中ConfigurableBootstrapContext的使用
修饰符和类型方法说明ApplicationEnvironmentPreparedEvent.getBootstrapContext()Return the bootstrap context.ApplicationStartingEvent.getBootstrapContext()Return the bootstrap context.限定符构造器说明ApplicationEnvironmentPreparedEvent(ConfigurableBootstrapContext bootstrapContext, SpringApplication application, String[] args, ConfigurableEnvironment environment) Create a newApplicationEnvironmentPreparedEventinstance.ApplicationStartingEvent(ConfigurableBootstrapContext bootstrapContext, SpringApplication application, String[] args) Create a newApplicationStartingEventinstance. -
org.springframework.boot.env中ConfigurableBootstrapContext的使用
修饰符和类型方法说明EnvironmentPostProcessorsFactory.getEnvironmentPostProcessors(DeferredLogFactory logFactory, ConfigurableBootstrapContext bootstrapContext) Create all requestedEnvironmentPostProcessorinstances.