| 1 | <?xml version="1.0" encoding="ISO-8859-1"?> |
| 2 | <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" |
| 4 | version="2.4"> |
| 5 | |
| 6 | <context-param> |
| 7 | <param-name>contextConfigLocation</param-name> |
| 8 | <param-value> |
| 9 | /WEB-INF/config/web-application-config.xml |
| 10 | </param-value> |
| 11 | </context-param> |
| 12 | |
| 13 | <filter> |
| 14 | <filter-name>characterEncodingFilter</filter-name> |
| 15 | <filter-class> |
| 16 | org.springframework.web.filter.CharacterEncodingFilter</filter-class> |
| 17 | <init-param> |
| 18 | <param-name>encoding</param-name> |
| 19 | <param-value>UTF-8</param-value> |
| 20 | </init-param> |
| 21 | <init-param> |
| 22 | <param-name>forceEncoding</param-name> |
| 23 | <param-value>true</param-value> |
| 24 | </init-param> |
| 25 | </filter> |
| 26 | <filter-mapping> |
| 27 | <filter-name>characterEncodingFilter</filter-name> |
| 28 | <url-pattern>/*</url-pattern> |
| 29 | </filter-mapping> |
| 30 | |
| 31 | |
| 32 | <filter> |
| 33 | <filter-name>JPA Filter</filter-name> |
| 34 | <filter-class> |
| 35 | org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter</filter-class> |
| 36 | </filter> |
| 37 | <filter-mapping> |
| 38 | <filter-name>JPA Filter</filter-name> |
| 39 | <url-pattern>/*</url-pattern> |
| 40 | </filter-mapping> |
| 41 | |
| 42 | |
| 43 | <listener> |
| 44 | <listener-class> |
| 45 | org.springframework.web.context.ContextLoaderListener</listener-class> |
| 46 | </listener> |
| 47 | |
| 48 | |
| 49 | <servlet-mapping> |
| 50 | <servlet-name>default</servlet-name> |
| 51 | <url-pattern>*.css</url-pattern> |
| 52 | </servlet-mapping> |
| 53 | <servlet-mapping> |
| 54 | <servlet-name>default</servlet-name> |
| 55 | <url-pattern>*.gif</url-pattern> |
| 56 | </servlet-mapping> |
| 57 | <servlet-mapping> |
| 58 | <servlet-name>default</servlet-name> |
| 59 | <url-pattern>*.js</url-pattern> |
| 60 | </servlet-mapping> |
| 61 | |
| 62 | |
| 63 | <servlet> |
| 64 | <servlet-name>Spring MVC Dispatcher Servlet</servlet-name> |
| 65 | <servlet-class> |
| 66 | org.springframework.web.servlet.DispatcherServlet</servlet-class> |
| 67 | <init-param> |
| 68 | <param-name>contextConfigLocation</param-name> |
| 69 | <param-value></param-value> |
| 70 | </init-param> |
| 71 | <load-on-startup>1</load-on-startup> |
| 72 | </servlet> |
| 73 | <servlet-mapping> |
| 74 | <servlet-name>Spring MVC Dispatcher Servlet</servlet-name> |
| 75 | <url-pattern>/</url-pattern> |
| 76 | </servlet-mapping> |
| 77 | |
| 78 | |
| 79 | <welcome-file-list> |
| 80 | <welcome-file>index.html</welcome-file> |
| 81 | </welcome-file-list> |
| 82 | |
| 83 | </web-app> |