Spring MVC should server static resources (*.html, ...) located in src/main/webapp instead of returning "404 Not Found"

This commit is contained in:
Cyrille Le Clerc 2013-08-10 19:49:01 +02:00
parent 657b8688e9
commit e15e45b5e2

View file

@ -33,6 +33,9 @@
<mvc:view-controller path="/" view-name="welcome" />
<!-- serve static resources (*.html, ...) from src/main/webapp/ -->
<mvc:default-servlet-handler/>
<bean id="conversionService" class="org.springframework.format.support.FormattingConversionServiceFactoryBean">
<property name="formatters">
<set>