Skip to content

Commit f49d351

Browse files
committed
Javadoc SpringBootServletInitializer with @ordered
Fixes spring-projectsgh-2098
1 parent 47469ab commit f49d351

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spring-boot/src/main/java/org/springframework/boot/context/web/SpringBootServletInitializer.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@
4646
* To configure the application either override the
4747
* {@link #configure(SpringApplicationBuilder)} method (calling
4848
* {@link SpringApplicationBuilder#sources(Object...)}) or make the initializer itself a
49-
* {@code @Configuration}.
49+
* {@code @Configuration}. If you are using {@link SpringBootServletInitializer} in
50+
* combination with other {@link WebApplicationInitializer WebApplicationInitializers} you
51+
* might also want to add an {@code @Ordered} annotation to configure a specific startup
52+
* order.
5053
* <p>
5154
* Note that a WebApplicationInitializer is only needed if you are building a war file and
5255
* deploying it. If you prefer to run an embedded container then you won't need this at

0 commit comments

Comments
 (0)