|
@@ -65,25 +65,17 @@
|
|
|
<url-pattern>/*</url-pattern>
|
|
|
</filter-mapping>
|
|
|
|
|
|
+ <!--@WebFilter批注声明一个过滤器。不会定义顺序,如需要定义顺义需要在filter上加入filterName(过滤器的名称),在web来声明 filter-mapping-->
|
|
|
+ <!--故SimpleCORSFilter恢复以前的方式来当过滤器使用-->
|
|
|
+ <filter>
|
|
|
+ <filter-name>cors</filter-name>
|
|
|
+ <filter-class>com.iamberry.common.web.SimpleCORSFilter</filter-class>
|
|
|
+ </filter>
|
|
|
+ <filter-mapping>
|
|
|
+ <filter-name>cors</filter-name>
|
|
|
+ <url-pattern>/*</url-pattern>
|
|
|
+ </filter-mapping>
|
|
|
|
|
|
-<!--
|
|
|
- <filter>
|
|
|
- <filter-name>cors</filter-name>
|
|
|
- <filter-class>com.iamberry.common.web.SimpleCORSFilter</filter-class>
|
|
|
- </filter>
|
|
|
- <filter-mapping>
|
|
|
- <filter-name>cors</filter-name>
|
|
|
- <url-pattern>/*</url-pattern>
|
|
|
- </filter-mapping>
|
|
|
- <error-page>
|
|
|
- <error-code>404</error-code>
|
|
|
- <location>/view/system_view/404.jsp</location>
|
|
|
- </error-page>
|
|
|
- <error-page>
|
|
|
- <error-code>500</error-code>
|
|
|
- <location>/view/system_view/500.jsp</location>
|
|
|
- </error-page>
|
|
|
--->
|
|
|
|
|
|
<listener>
|
|
|
<listener-class>com.iamberry.wechat.listener.MessageQueueListener</listener-class>
|