From 85c8237fb5f7e3924ec43a7677e2233ae6e6ae24 Mon Sep 17 00:00:00 2001 From: michaelisvy <misvy@gopivotal,com> Date: Fri, 28 Nov 2014 13:40:46 +0900 Subject: [PATCH] added comment on <mvc:default-servlet-handler /> --- src/main/resources/spring/mvc-core-config.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/resources/spring/mvc-core-config.xml b/src/main/resources/spring/mvc-core-config.xml index 170fbdb..eab2062 100644 --- a/src/main/resources/spring/mvc-core-config.xml +++ b/src/main/resources/spring/mvc-core-config.xml @@ -33,8 +33,9 @@ <mvc:view-controller path="/" view-name="welcome" /> - <!-- serve static resources (*.html, ...) from src/main/webapp/ --> - <mvc:default-servlet-handler/> + <!-- serve static resources (*.html, ...) from src/main/webapp/ + Required when both servlet-mapping is '/' and static resources need to be served --> + <mvc:default-servlet-handler /> <bean id="conversionService" class="org.springframework.format.support.FormattingConversionServiceFactoryBean"> <property name="formatters"> -- GitLab