From bfaa7262b540797ae18815a0db6b1d43c2b0a91b Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Tue, 21 Apr 2015 08:28:22 +0000 Subject: [PATCH] Sync docs from master to gh-pages --- spring-cloud.html | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/spring-cloud.html b/spring-cloud.html index ecd5611..bbb9776 100644 --- a/spring-cloud.html +++ b/spring-cloud.html @@ -769,7 +769,26 @@ a comma-separated list of Spring @Configuration classes which will be used to create the context. Any beans that you want to be available to the main application context for autowiring can be created here, and also there is a special contract for @Beans of type -ApplicationContextInitializer.

+ApplicationContextInitializer. Classes can be marked with an @Order +if you want to control the startup sequence (the default order is +"last").

+ +
+ + + + + +
+
Warning
+
+Be careful when adding custom BootstrapConfiguration that the +classes you add are not @ComponentScanned by mistake into your +"main" application context, where they might not be needed. +Use a separate package name for boot configuration classes that is +not already covered by your @ComponentScan or @SpringBootApplication +annotated configuration classes. +

The bootstrap process ends by injecting initializers into the main @@ -3832,7 +3851,7 @@ ProxyAuthenticationProperties] for full details.