diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/support/AbstractAnnotationConfigDispatcherServletInitializer.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/support/AbstractAnnotationConfigDispatcherServletInitializer.java index 6a1777fe10..fc897a10de 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/support/AbstractAnnotationConfigDispatcherServletInitializer.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/support/AbstractAnnotationConfigDispatcherServletInitializer.java @@ -87,8 +87,8 @@ public abstract class AbstractAnnotationConfigDispatcherServletInitializer * and/or {@link org.springframework.stereotype.Component @Component} classes to be * provided to the {@linkplain #createServletApplicationContext() dispatcher servlet * application context}. - * @return the configuration classes for the dispatcher servlet application context - * (may not be empty or {@code null}) + * @return the configuration classes for the dispatcher servlet application context or + * {@code null} if all configuration is specified through root config classes. */ protected abstract Class[] getServletConfigClasses();