struts排除拦截指定请求
struts2中配置拦截为*.do,多数时间使用其它组件时,也要配置servlet,可能也是固定的xxx.do方式,这样,struts也会拦截了对servlet的请求,这时可以在struts中排除对servlet的请求:
1 2 3 4 | <struts> <!-- 多个用逗号分隔 --> <constant name="struts.action.excludePattern" value="/xx.do,/user/*.do"/> </struts> |
http://struts.apache.org/release/2.2.x/docs/webxml.html
Comments are currently closed.