www.pudn.com > ice-frame-restful.zip > web.xml, change:2016-09-02,size:1906b


<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

  <display-name>ICEREST-EXAMPLE</display-name>


  <!-- WafFilter use . -->
  <filter>
    <filter-name>WafFilter</filter-name>
    <filter-class>com.cybermkd.filter.WafFilter</filter-class>
    <init-param>
      <param-name>whitelists</param-name>
      <param-value>/test/a.html;</param-value>
    </init-param>
    <init-param>
      <param-name>filter_xss</param-name>
      <param-value>true</param-value>
    </init-param>
    <init-param>
      <param-name>filter_sql_injection</param-name>
      <param-value>true</param-value>
    </init-param>
  </filter>
  <filter-mapping>
    <filter-name>WafFilter</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>


  <filter>
    <filter-name>IcerestFilter</filter-name>
    <filter-class>com.cybermkd.route.IceFilter</filter-class>
    <init-param>
      <param-name>exclusions</param-name>
      <!--把不经过过滤的文件或者目录配置在这儿,逗号分割-->
      <param-value>/**/*.js,/**/*.gif,/**/*.jpg,/**/*.png,/**/*.css,/**/*.ico,/druid/**</param-value>
    </init-param>
    <init-param>
      <!--核心配置文件-->
      <param-name>configClass</param-name>
      <param-value>com.cybermkd.config.AppConfig</param-value>
    </init-param>
  </filter>

  <filter-mapping>
    <filter-name>IcerestFilter</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>



  <filter>
    <filter-name>Gzip</filter-name>
    <filter-class>com.cybermkd.filter.GzipFilter</filter-class>
  </filter>
  <filter-mapping>
    <filter-name>Gzip</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>

</web-app>