strus2配置strus.xml问题-The content of element type "package" must match "(result-types?,interceptors?

搭建strus2项目,在配置strus.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*)"

没看出来哪里有问题,问了度娘发现在strus.xml中配置package需要按照一定的顺序来配置package中的元素,顺序如下:

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

原文地址:https://www.cnblogs.com/huangzhang/p/9195748.html