The content of element type "package" must match "(result-types?,interceptors?,default-intercept .
2016-09-12 18:53
711 查看
今儿 在配置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-allowed-methods?,global-exception-
mappings?,action*)".
后google和查阅相关博客找到原因:元素类型是有顺序的 顺序即括号中的排列
eg. result-types?,
interceptors?,
default-interceptor- ref?,
default-action-ref?,
default-class-ref?,
global-results?,
global-allowed-methods?,
global-exception-mappings?,
action*
The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-
ref?,default-action-ref?,default-class-ref?,global-results?,global-allowed-methods?,global-exception-
mappings?,action*)".
后google和查阅相关博客找到原因:元素类型是有顺序的 顺序即括号中的排列
eg. result-types?,
interceptors?,
default-interceptor- ref?,
default-action-ref?,
default-class-ref?,
global-results?,
global-allowed-methods?,
global-exception-mappings?,
action*
相关文章推荐
- 错误:“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-intercept
- 报错:“The content of element type "package" must match "(result-types?,interceptors?,default-intercept
- The contenTht 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-r
- 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 content of element type "package" must match "(result-types?,interceptors?,default-interce
- The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-r
- 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?,default-int
- 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-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-interceptor-
- The content of element type "package" must match "(result-types?,interceptors?...
- struts2 问题 The content of element type "package" must match "(result-types?,interceptors?,
- struts.xml错误提示:The content of element type "package" must match "(result-types?,interceptors?,defaul