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}. *