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 @   软柠柠吖  阅读(18)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 单线程的Redis速度为什么快?
· SQL Server 2025 AI相关能力初探
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 展开说说关于C#中ORM框架的用法!
点击右上角即可分享
微信分享提示