Clarify usage of EnvironmentPostProcessor

Closes gh-6101
This commit is contained in:
Stephane Nicoll
2016-06-20 15:29:38 +02:00
parent 5e4f84cf46
commit 06aa35b9da
2 changed files with 20 additions and 1 deletions

View File

@@ -82,6 +82,15 @@ by the `ApplicationContext` as well. See
_<<spring-boot-features.adoc#boot-features-application-events-and-listeners>>_ in the
'`Spring Boot features`' section for a complete list.
It is also possible to customize the `Environment` before the application context is
refreshed using `EnvironmentPostProcessor`. Each implementation should be registered in
`META-INF/spring.factories`:
[source,properties,indent=0]
----
org.springframework.boot.env.EnvironmentPostProcessor=com.example.YourEnvironmentPostProcessor
----
[[howto-build-an-application-context-hierarchy]]