struts2添加拦截器后报如下错误:
The content of element type "interceptors" must match "(interceptor|interceptor-stack)+".
The content of element type "interceptors" must match "<interceptor-ref>*"
错误可能原因:
配置文件里的代码,很有可能是从网上copy下来的,其中可能包含了一些特殊格式的字符
解决办法:
删除标签之间的空格,重新编排下代码,或者将copy下来的代码全部删除,自己键盘敲入
最好将标签中间的注释也删除
祝你能有好运