bd3ba7a0abdb994ed6b25310bcb50b119bd06fd5.svn-base 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1">
  3. <display-name>iamberry-app-api</display-name>
  4. <welcome-file-list>
  5. <welcome-file>index.html</welcome-file>
  6. <welcome-file>index.htm</welcome-file>
  7. <welcome-file>index.jsp</welcome-file>
  8. <welcome-file>default.html</welcome-file>
  9. <welcome-file>default.htm</welcome-file>
  10. <welcome-file>default.jsp</welcome-file>
  11. </welcome-file-list>
  12. <context-param>
  13. <param-name>contextConfigLocation</param-name>
  14. <param-value>classpath:iamberry-app-api-ioc.xml</param-value>
  15. </context-param>
  16. <listener>
  17. <listener-class>org.springframework.web.util.IntrospectorCleanupListener</listener-class>
  18. </listener>
  19. <listener>
  20. <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  21. </listener>
  22. <servlet>
  23. <servlet-name>springDispatcherServlet</servlet-name>
  24. <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
  25. <init-param>
  26. <param-name>contextConfigLocation</param-name>
  27. <param-value>classpath:iamberry-app-api-mvc.xml</param-value>
  28. </init-param>
  29. <load-on-startup>1</load-on-startup>
  30. </servlet>
  31. <servlet-mapping>
  32. <servlet-name>springDispatcherServlet</servlet-name>
  33. <url-pattern>/</url-pattern>
  34. </servlet-mapping>
  35. <filter>
  36. <filter-name>characterEncodingFilter</filter-name>
  37. <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
  38. <init-param>
  39. <param-name>encoding</param-name>
  40. <param-value>UTF-8</param-value>
  41. </init-param>
  42. <init-param>
  43. <param-name>forceEncoding</param-name>
  44. <param-value>true</param-value>
  45. </init-param>
  46. </filter>
  47. <filter-mapping>
  48. <filter-name>characterEncodingFilter</filter-name>
  49. <url-pattern>/*</url-pattern>
  50. </filter-mapping>
  51. <error-page>
  52. <error-code>404</error-code>
  53. <location>/view/system_view/404.jsp</location>
  54. </error-page>
  55. <error-page>
  56. <error-code>500</error-code>
  57. <location>/view/system_view/500.jsp</location>
  58. </error-page>
  59. <!-- <servlet-mapping>
  60. <servlet-name>default</servlet-name>
  61. <url-pattern>/apidoc/*</url-pattern>
  62. <url-pattern>/share_web_page/*</url-pattern>
  63. </servlet-mapping> -->
  64. <filter>
  65. <filter-name>cors</filter-name>
  66. <filter-class>com.iamberry.common.web.SimpleCORSFilter</filter-class>
  67. </filter>
  68. <filter-mapping>
  69. <filter-name>cors</filter-name>
  70. <url-pattern>/*</url-pattern>
  71. </filter-mapping>
  72. </web-app>