Skip to content
Snippets Groups Projects
Commit 0b9d98ba authored by Costin Leau's avatar Costin Leau Committed by Mic
Browse files

disable welcome files (for Servlet 3 compatibility)

parent 973c45ba
No related branches found
No related tags found
No related merge requests found
...@@ -147,16 +147,16 @@ ...@@ -147,16 +147,16 @@
<url-pattern>/</url-pattern> <url-pattern>/</url-pattern>
</servlet-mapping> </servlet-mapping>
<filter> <filter>
<filter-name>httpMethodFilter</filter-name> <filter-name>httpMethodFilter</filter-name>
<filter-class>org.springframework.web.filter.HiddenHttpMethodFilter</filter-class> <filter-class>org.springframework.web.filter.HiddenHttpMethodFilter</filter-class>
</filter> </filter>
<filter-mapping>
<filter-name>httpMethodFilter</filter-name>
<servlet-name>petclinic</servlet-name>
</filter-mapping>
<filter-mapping>
<filter-name>httpMethodFilter</filter-name>
<servlet-name>petclinic</servlet-name>
</filter-mapping>
<session-config> <session-config>
<session-timeout>10</session-timeout> <session-timeout>10</session-timeout>
</session-config> </session-config>
...@@ -167,6 +167,12 @@ ...@@ -167,6 +167,12 @@
<location>/WEB-INF/jsp/uncaughtException.jsp</location> <location>/WEB-INF/jsp/uncaughtException.jsp</location>
</error-page> </error-page>
<!-- eliminate welcome files -->
<!-- useful for Servlet 3 container (Tomcat 7 and Jetty 6) -->
<welcome-file-list>
<welcome-file></welcome-file>
</welcome-file-list>
<!-- <!--
- Reference to PetClinic database. - Reference to PetClinic database.
- Only needed if not using a local DataSource but a JNDI one instead. - Only needed if not using a local DataSource but a JNDI one instead.
...@@ -179,4 +185,4 @@ ...@@ -179,4 +185,4 @@
</resource-ref> </resource-ref>
--> -->
</web-app> </web-app>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment