strust2里面package的元素排列顺序

“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*)". ” 
刚看到这个错误我就想,哪个也没写错呀。仔细对了好几遍也没发现哪个属 
性写错了。最后Google了一下,看了别人写的文章豁然开朗了。 
这个错误的意思是,package里元素必须按照一定的顺序排列。这个顺序就是
result-types 
interceptors 
default-interceptor-ref 
default-action-ref 
default-class-ref 
global-results 
global-exception-mappings 
action*(就是所有的action放到最后) 

原文地址:https://www.cnblogs.com/king-/p/4183177.html