mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2026-01-13 05:11:12 +00:00
65 lines
No EOL
2.5 KiB
XML
65 lines
No EOL
2.5 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xmlns="http://java.sun.com/xml/ns/javaee"
|
|
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
|
|
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
|
|
id="WebApp_ID" version="2.5">
|
|
|
|
<display-name>Spring PetClinic</display-name>
|
|
<description>Spring PetClinic sample application</description>
|
|
|
|
<context-param>
|
|
<param-name>spring.profiles.active</param-name>
|
|
<param-value>jpa</param-value>
|
|
<!-- Available profiles:
|
|
<param-value>jdbc</param-value>
|
|
<param-value>jpa</param-value> (in the case of plain JPA)
|
|
<param-value>spring-data-jpa</param-value> (in the case of Spring Data JPA)
|
|
-->
|
|
</context-param>
|
|
|
|
<!--
|
|
- Location of the XML file that defines the root application context.
|
|
- Applied by ContextLoaderServlet.
|
|
-->
|
|
<context-param>
|
|
<param-name>contextConfigLocation</param-name>
|
|
<param-value>classpath:spring/business-config.xml, classpath:spring/tools-config.xml</param-value>
|
|
</context-param>
|
|
|
|
<listener>
|
|
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
|
|
</listener>
|
|
|
|
<!--
|
|
- Servlet that dispatches request to registered handlers (Controller implementations).
|
|
-->
|
|
<servlet>
|
|
<servlet-name>petclinic</servlet-name>
|
|
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
|
|
<init-param>
|
|
<param-name>contextConfigLocation</param-name>
|
|
<param-value>classpath:spring/mvc-core-config.xml</param-value>
|
|
</init-param>
|
|
<load-on-startup>1</load-on-startup>
|
|
</servlet>
|
|
|
|
<servlet-mapping>
|
|
<servlet-name>petclinic</servlet-name>
|
|
<url-pattern>/</url-pattern>
|
|
</servlet-mapping>
|
|
|
|
<!-- used so we can use forms of method type 'PUT' and 'DELETE'
|
|
see here: http://static.springsource.org/spring/docs/current/spring-framework-reference/html/view.html#rest-method-conversion
|
|
-->
|
|
<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>
|
|
|
|
</web-app> |