现在的位置: 首页 > 综合 > 正文

“The content of element type “package” must match “(result-types?,interceptors?,default-interceptor-

2013年08月26日 ⁄ 综合 ⁄ 共 391字 ⁄ 字号 评论关闭

“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*)".
” 


struts2中这个错误的意思是,package里元素必须按照一定的顺序排列。这个顺序 
就是 
result-types 
interceptors 
default-interceptor-ref 
default-action-ref 
default-class-ref 
global-results 
global-exception-mappings 
action*(就是所有的action放到最后) 

【上篇】
【下篇】

抱歉!评论已关闭.