struts顺序问题

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

问题描述:

The content of element type "package" must match

元素类型 "包" 的内容必须匹配

大致意思就是,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 次或多次)。

参考博客

https://blog.csdn.net/qq786305898/article/details/77504691/

posted @ 2022-11-24 19:30  软柠柠吖  阅读(15)  评论(0编辑  收藏  举报