struts2配置文件报错

在struts.xml中配置了拦截器之后报错了,错误为:

The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-ref?,default-action-ref?,default-class-ref?,global-

 results?,global-exception-mappings?,action*)".,

查资料得知,package里元素必须按照一定的顺序排列:

result-types 
interceptors 
default-interceptor-ref 
default-action-ref 
default-class-ref 
global-results 
global-exception-mappings 
action*(就是所有的action放到最后)  

猜你喜欢

转载自blog.csdn.net/weixin_32418175/article/details/80818324
今日推荐