mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-05-28 06:09:37 +00:00
disable welcome files (for Servlet 3 compatibility)
This commit is contained in:
parent
973c45ba2d
commit
0b9d98ba1c
1 changed files with 16 additions and 10 deletions
|
@ -147,16 +147,16 @@
|
|||
<url-pattern>/</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<filter>
|
||||
<filter-name>httpMethodFilter</filter-name>
|
||||
<filter-class>org.springframework.web.filter.HiddenHttpMethodFilter</filter-class>
|
||||
</filter>
|
||||
<filter>
|
||||
<filter-name>httpMethodFilter</filter-name>
|
||||
<filter-class>org.springframework.web.filter.HiddenHttpMethodFilter</filter-class>
|
||||
</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-timeout>10</session-timeout>
|
||||
</session-config>
|
||||
|
@ -167,6 +167,12 @@
|
|||
<location>/WEB-INF/jsp/uncaughtException.jsp</location>
|
||||
</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.
|
||||
- Only needed if not using a local DataSource but a JNDI one instead.
|
||||
|
@ -179,4 +185,4 @@
|
|||
</resource-ref>
|
||||
-->
|
||||
|
||||
</web-app>
|
||||
</web-app>
|
Loading…
Reference in a new issue