Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
broken-petclinic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
s61200
broken-petclinic
Commits
bf41a4b4
Commit
bf41a4b4
authored
12 years ago
by
Mic
Browse files
Options
Downloads
Patches
Plain Diff
integrate dandelion config for Servlet 2 compatibility
parent
95e8b64a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/webapp/WEB-INF/web.xml
+39
-15
39 additions, 15 deletions
src/main/webapp/WEB-INF/web.xml
with
39 additions
and
15 deletions
src/main/webapp/WEB-INF/web.xml
+
39
−
15
View file @
bf41a4b4
...
...
@@ -2,7 +2,7 @@
<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"
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
id=
"WebApp_ID"
version=
"2.5"
>
<display-name>
Spring PetClinic
</display-name>
...
...
@@ -10,21 +10,21 @@
<context-param>
<param-name>
spring.profiles.active
</param-name>
<param-value>
j
pa
</param-value>
<param-value>
j
dbc
</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)
-->
<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.
-->
- 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>
<param-value>
classpath:spring/
dao
-config.xml, classpath:spring/tools-config.xml
</param-value>
</context-param>
<listener>
...
...
@@ -32,8 +32,8 @@
</listener>
<!--
- Servlet that dispatches request to registered handlers (Controller implementations).
-->
- Servlet that dispatches request to registered handlers (Controller implementations).
-->
<servlet>
<servlet-name>
petclinic
</servlet-name>
<servlet-class>
org.springframework.web.servlet.DispatcherServlet
</servlet-class>
...
...
@@ -49,9 +49,33 @@
<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
-->
<!-- Dandelion-Datatables servlet definition -->
<servlet>
<servlet-name>
datatablesController
</servlet-name>
<servlet-class>
com.github.dandelion.datatables.extras.servlet2.servlet.DatatablesServlet
</servlet-class>
</servlet>
<!-- Dandelion-Datatables servlet mapping -->
<servlet-mapping>
<servlet-name>
datatablesController
</servlet-name>
<url-pattern>
/datatablesController/*
</url-pattern>
</servlet-mapping>
<!-- Dandelion-Datatables filter definition -->
<filter>
<filter-name>
datatablesFilter
</filter-name>
<filter-class>
com.github.dandelion.datatables.extras.servlet2.filter.DatatablesFilter
</filter-class>
</filter>
<!-- Dandelion-Datatables filter mapping -->
<filter-mapping>
<filter-name>
datatablesFilter
</filter-name>
<url-pattern>
/*
</url-pattern>
</filter-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>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment