struts2配置顺序

如果顺序出错,启动的时候会报错如下:

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*)

正确的顺序如下:

result-types?

,interceptors?

,default-interceptor-ref?

,default-action-ref?

,default-class-ref?

,global-results?

,global-exception-mappings?

,action*

你可能感兴趣的:(struts2)