public class SourceEnvironmentPostProcessor extends Object implements org.springframework.boot.env.EnvironmentPostProcessor, org.springframework.core.Ordered
The implementation of information collection before the creation of the spring container here,including the package path where the main class is started, plays a crucial role in the scalability of the example package in the future.
| 构造器和说明 |
|---|
SourceEnvironmentPostProcessor() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String[] |
findSpringbootPrimarySourcesPackages()
Take the package path information where the springboot main class is located.
|
int |
getOrder() |
void |
postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment,
org.springframework.boot.SpringApplication application) |
public void postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment,
org.springframework.boot.SpringApplication application)
postProcessEnvironment 在接口中 org.springframework.boot.env.EnvironmentPostProcessorpublic int getOrder()
getOrder 在接口中 org.springframework.core.Orderedpublic static String[] findSpringbootPrimarySourcesPackages()
org.springframework.boot.SpringApplication#primarySources,
there can be multiple main class paths and must not be null.Copyright © 2023. All rights reserved.