Struts2报到异常:The content of element type "package" must match
Struts2工程启动提示错误:
The content of element type “package” must match
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*)”. struts.xml /webstruts/src line 12 XML Problem
这个错误的意思是,package里元素必须按照其默认的顺序排列。这个顺序
是:
result-types
interceptors
default-interceptor-ref
default-action-ref
default-class-ref
global-results
global-exception-mappings
action*(把所有的action放到最后)