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


出错原因:package里元素必须按照一定的顺序排列。这个顺序就是


result-types

interceptors
default-interceptor-ref
default-action-ref
default-class-ref
global-results
global-exception-mappings
action*

猜你喜欢

转载自csumissu.iteye.com/blog/1071467