struts2---The content of element type "package" must match "(result-types?,interceptors?,default-int
2017-12-15 22:19
465 查看
在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*)".,
我是因为把自定义拦截器写在了action前面导致出错,原来是package里元素必须按照一定的顺序排列:
result-types
interceptors
default-interceptor-ref
default-action-ref
default-class-ref
global-results
global-exception-mappings
action*(就是所有的action放到最后)
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*)".,
我是因为把自定义拦截器写在了action前面导致出错,原来是package里元素必须按照一定的顺序排列:
result-types
interceptors
default-interceptor-ref
default-action-ref
default-class-ref
global-results
global-exception-mappings
action*(就是所有的action放到最后)
相关文章推荐
- struts2---The content of element type "package" must match "(result-types?,interceptors?,default-int
- struts2---The content of element type "package" must match "(result-types?,interceptors?,default-int
- 报错:“The content of element type "package" must match "(result-types?,interceptors?,default-intercept
- “The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-
- The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-r
- The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-r
- The content of element type "package" must match "(result-types?,interceptors?,default-intercept .
- 错误:“The content of element type "package" must match "(result-types?,interceptors?,default-intercept
- 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*)".
- The contenTht of element type "package" must match "(result-types?,interceptors?,default-intercept .
- The content of element type "package" mustmatch "(result-types?,interceptors?,default-interceptor-re
- struts2 问题 The content of element type "package" must match "(result-types?,interceptors?,
- The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-r
- 如果出现The content of element type "package" must match "(result-types?,interceptors?,default-interce
- The content of element type "package" must match "(result-types?,interceptors?,default-intercept .
- The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-r
- The content of element type "package" must match "(result-types?,interceptors?,default-intercept
- The content of element type "package" must match "(result-types?,interceptors?,default-intercept .
- The content of element type "package" must match "(result-types?,interceptors?...
- “The content of element type "package" must match "(result-types?,interceptors?,