读书人

struts2的配置文件中The content of e

发布时间: 2012-10-24 14:15:58 作者: rapoo

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*

?

读书人网 >软件架构设计

热点推荐