From 867c4a14cbcb1f7bc8d4dfa21fafee95ac068777 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Tue, 22 Oct 2019 13:16:02 -0700 Subject: [PATCH] Clarify Javadoc for ServletContextInitializer Closes gh-18660 --- .../boot/web/servlet/ServletContextInitializer.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/ServletContextInitializer.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/ServletContextInitializer.java index 83e84f23e9..0a7f693a28 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/ServletContextInitializer.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/ServletContextInitializer.java @@ -16,6 +16,7 @@ package org.springframework.boot.web.servlet; +import javax.servlet.ServletContainerInitializer; import javax.servlet.ServletContext; import javax.servlet.ServletException; @@ -29,8 +30,9 @@ import org.springframework.web.WebApplicationInitializer; * detected by {@link SpringServletContainerInitializer} and hence will not be * automatically bootstrapped by the Servlet container. *

- * This interface is primarily designed to allow {@link ServletContextInitializer}s to be - * managed by Spring and not the Servlet container. + * This interface is designed to act in a similar way to + * {@link ServletContainerInitializer}, but have a lifecycle that's managed by Spring and + * not the Servlet container. *

* For configuration examples see {@link WebApplicationInitializer}. *