配置拦截器,struts.xml报错

在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中的元素必须按照一定的顺序排列

原文地址:https://www.cnblogs.com/leerep/p/13124860.html