struts2---The content of element type "package" must match "(result-types?,inter
程序员文章站
2022-03-03 09:01:11
...
在struts.xml报错,错误为:
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*(就是所有的action放到最后)
推荐阅读
-
mybatis_ The content of element type association must match (constructor,id,result,ass ociation,collection,discriminator)
-
The content of element type "font-face" is incomplete, it must match "((font-face-src,(desc|title|me
-
The content of element type "web-app"must match……问题之解决办法
-
mybatis_ The content of element type association must match (constructor,id,result,ass ociation,collection,discriminator)
-
struts2---The content of element type "package" must match "(result-types?,inter
-
struts2---The content of element type "package" must match "(result-types?,inter