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*

猜你喜欢

转载自cgl198617.iteye.com/blog/1099356