struts2的struts.xml文件中package里的元素排列顺序
package里元素必须按照一定的顺序排列,排列顺序如下:
result-types
interceptors
default-interceptor-ref
default-action-ref
default-class-ref
global-results
global-exception-mappings
action*(就是所有的action放到最后)
?
如果排列有误,则会出现如下异常:
org.xml.sax.SAXParseException: The content of element type "action" must match "(param|result|interceptor-ref|exception-mapping)*".