web端:
这是前端页面index.jsp请求静态资源文件的代码:
<link href="./DWZ/style.css" rel="stylesheet" type="text/css" media="screen">
<link href="./DWZ/core.css" rel="stylesheet" type="text/css" media="screen">
<link href="./DWZ/print.css" rel="stylesheet" type="text/css" media="print">
web.xml文件的配置:
<display-name>nutztest</display-name>
<filter>
<filter-name>nutz</filter-name>
<filter-class>org.nutz.mvc.NutFilter</filter-class>
<init-param>
<param-name>modules</param-name>
<param-value>net.module.MainModule</param-value>
</init-param>
<init-param>
<param-name>ignore</param-name>
<param-value>^(.+[.])(jsp|png|gif|jpg|js|css|jspx|jpeg|html|mp3|mp4|ico)$</param-value>
</init-param>
<init-param>
<param-name>exclusions</param-name>
<param-value>*.css,*.js,/DWZ/*</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>nutz</filter-name>
<url-pattern>*.action</url-pattern>
</filter-mapping>
这是前段页面的目录:
WEB-INFO
DWZ
dwz.accordion.js
........
index.jsp
这是部分报错信息
GET http://localhost:8090/DWZ/style.css
index.action:10 GET http://localhost:8090/DWZ/core.css
index.action:12 GET http://localhost:8090/DWZ/uploadify.css
index.action:18 GET http://localhost:8090/DWZ/jquery-2.1.4.min.js
index.action:20 GET http://localhost:8090/DWZ/jquery.cookie.js
index.action:21 GET http://localhost:8090/DWZ/jquery.validate.js
index.action:22 GET http://localhost:8090/DWZ/jquery.bgiframe.js