您的位置:首页 > 其它

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*
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐