struts2 无法访问static目录下的内容的解决办法

struts2 无法访问static目录下的内容,可以参考这里http://caoxudong818.iteye.com/blog/1137571

struts2包中有名为static的目录放了一些static2的静态资源js、图片等。

查看了下配置的说明 默认如下

### Used by FilterDispatcher

### If true then Struts serves static content from inside its jar.

### If false then the static content must be available at <context_path>/struts

struts.serve.static=true

 

只要自己把配置改为

struts.serve.static=false

即可

posted @ 2013-05-23 19:16  奈何醉  阅读(744)  评论(0编辑  收藏  举报