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放到最后)
posted on 2018-06-18 18:21 huangzhang 阅读(136) 评论(0) 编辑 收藏 举报