2017-12-29 16:18:40 +08:00
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
|
<sitemesh>
|
|
|
|
|
|
|
|
|
|
|
|
<!--默认情况下,
|
|
|
|
|
|
sitemesh 只对 HTTP 响应头中 Content-Type 为 text/html 的类型进行拦截和装饰,
|
|
|
|
|
|
我们可以添加更多的 mime 类型-->
|
|
|
|
|
|
<mime-type>text/html</mime-type>
|
|
|
|
|
|
<mime-type>application/vnd.wap.xhtml+xml</mime-type>
|
|
|
|
|
|
<mime-type>application/xhtml+xml</mime-type>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 默认装饰器,当下面的路径都不匹配时,启用该装饰器进行装饰 -->
|
|
|
|
|
|
<mapping decorator="/WEB-INF/views/layouts/decorator.jsp"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 指明满足“/nis/*”的页面,将被“layouts/decorator.jsp”所装饰 -->
|
|
|
|
|
|
<!-- 对不同的路径,启用不同的装饰器 -->
|
|
|
|
|
|
<mapping path="/sys/*" decorator="/WEB-INF/views/layouts/blank.jsp"/>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 指明满足“/exclude.jsp*”的页面,将被排除,不被装饰 -->
|
|
|
|
|
|
<!-- 排除,不进行装饰的路径 -->
|
|
|
|
|
|
<mapping path="/javadoc/*" exclue="true"/>
|
|
|
|
|
|
<mapping path="/brochures/*" exclue="true"/>
|
2018-06-01 09:51:18 +08:00
|
|
|
|
<mapping path="/nis/ntc/website/ajax*" exclue="true"/>
|
2018-06-05 11:06:37 +08:00
|
|
|
|
<mapping path="/nis/ntc/mail/ajax*" exclue="true"/>
|
|
|
|
|
|
<mapping path="/nis/ntc/fileTransfer/ajax*" exclue="true"/>
|
|
|
|
|
|
<mapping path="/nis/ntc/app/ajax*" exclue="true"/>
|
2018-06-13 09:30:03 +08:00
|
|
|
|
<mapping path="/nis/ntc/other/ajax*" exclue="true"/>
|
2018-07-04 14:26:21 +08:00
|
|
|
|
<mapping path="/nis/proxy/control/httpRedirect/ajax*" exclue="true"/>
|
2018-07-04 16:03:07 +08:00
|
|
|
|
<mapping path="/nis/app/ajax*" exclue="true"/>
|
2018-07-09 17:36:13 +08:00
|
|
|
|
<mapping path="/nis/report/ajax*" exclue="true"/>
|
2018-07-24 18:45:27 +08:00
|
|
|
|
<mapping path="/nis/basicprotocol/ajax*" exclue="true"/>
|
2018-07-25 17:10:14 +08:00
|
|
|
|
<mapping path="/nis/encryptedtunnelbehav/ajax*" exclue="true"/>
|
2018-08-20 11:35:07 +08:00
|
|
|
|
<mapping path="/nis/ntc/av/ajax*" exclue="true"/>
|
2018-08-22 09:27:06 +08:00
|
|
|
|
<mapping path="/nis/proxy/intercept/ajax*" exclue="true"/>
|
2018-08-24 20:55:20 +08:00
|
|
|
|
<mapping path="/nis/ntc/whitelist/ip/ajax*" exclue="true"/>
|
|
|
|
|
|
<mapping path="/nis/ntc/whitelist/domain/ajax*" exclue="true"/>
|
2018-08-25 11:42:24 +08:00
|
|
|
|
<mapping path="/nis/ntc/iplist/ajax*" exclue="true"/>
|
2018-08-28 17:15:12 +08:00
|
|
|
|
<mapping path="/nis/ntc/whitelist/ajax*" exclue="true"/>
|
2018-09-23 15:40:33 +08:00
|
|
|
|
<mapping path="/nis/app/feature/ajax*" exclue="true"/>
|
2018-11-12 18:39:57 +08:00
|
|
|
|
<mapping path="/nis/proxy/cache/ajax*" exclue="true"/>
|
2018-11-29 17:20:33 +08:00
|
|
|
|
<mapping path="/nis/manipulation/ddos/ajax*" exclue="true"/>
|
2017-12-29 16:18:40 +08:00
|
|
|
|
<!-- 对同一路径,启用多个装饰器 -->
|
|
|
|
|
|
<mapping>
|
|
|
|
|
|
<path>/articles/*</path>
|
|
|
|
|
|
<decorator>/decorators/article.html</decorator>
|
|
|
|
|
|
<decorator>/decorators/two-page-layout.html</decorator>
|
|
|
|
|
|
<decorator>/decorators/common.html</decorator>
|
|
|
|
|
|
</mapping>
|
|
|
|
|
|
<!-- 自定义 tag 规则 -->
|
|
|
|
|
|
<content-processor>
|
|
|
|
|
|
|
|
|
|
|
|
</content-processor>
|
|
|
|
|
|
|
|
|
|
|
|
</sitemesh>
|