diff --git a/org.springframework.web/src/main/java/org/springframework/web/WebApplicationInitializer.java b/org.springframework.web/src/main/java/org/springframework/web/WebApplicationInitializer.java index 55932393eee..b3e5c0fdcd4 100644 --- a/org.springframework.web/src/main/java/org/springframework/web/WebApplicationInitializer.java +++ b/org.springframework.web/src/main/java/org/springframework/web/WebApplicationInitializer.java @@ -150,12 +150,11 @@ import javax.servlet.ServletException; *

{@code WEB-INF/web.xml} and {@code WebApplicationInitializer} use are not mutually * exclusive; for example, web.xml can register one servlet, and a {@code * WebApplicationInitializer} can register another. An initializer can even - * modify registrations performed in {@code web.xml} through the - * {@link ServletContext#getServletRegistration(String)} method and its similiars. - * However, if {@code WEB-INF/web.xml} is present in the application, its - * {@code version} attribute must be set to "3.0" or greater, otherwise {@code - * ServletContainerInitializer} bootstrapping will be ignored by the servlet container. - * + * modify registrations performed in {@code web.xml} through methods such as + * {@link ServletContext#getServletRegistration(String)}. However, if + * {@code WEB-INF/web.xml} is present in the application, its {@code version} attribute + * must be set to "3.0" or greater, otherwise {@code ServletContainerInitializer} + * bootstrapping will be ignored by the servlet container. * *

Mapping to '/' under Tomcat

*

Apache Tomcat maps its internal {@code DefaultServlet} to "/", and on Tomcat versions