`
paladin1988
  • 浏览: 319910 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

struts2---The content of element type "package" must match "(result-types?,inter

阅读更多

 

 

在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*)".,查了资料才知道,原来是package里元素必须按照一定的

 

顺序排列:

 

result-types 
interceptors 
default-interceptor-ref 
default-action-ref 
default-class-ref 
global-results 
global-exception-mappings 
action*(就是所有的action放到最后) 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics