您的位置:首页 > 其它

The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-r

2017-08-23 13:03 561 查看
问题:

在编写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*)".

解决:

其实看懂英文的意思就ok。。。package标签中的元素,必须匹配  result-types?,interceptors?,default-interceptor-ref?,default-action-ref?,default-class-ref?,global-
results?,global-exception-mappings?,action*  这个顺序。

注:   1.  ?代表前面的字符最多只可以出现一次(0次、或1次);

  2.  * 号代表字符可以不出现,也可以出现一次或者多次(0次、或1次、或多次)。

  3.  + 号代表前面的字符必须至少出现一次(1次或多次)。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐