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* 这个顺序。
解决方案:
按照规定的顺序书写!
🎉彩蛋🪅:
?:代表前面的字符最多只可以出现一次(0次或1次)。*:代表字符可以不出现,也可以出现一次或多次(0次、1次或多次)。+:代表前面的字符必须至少出现一次(1次或多次)。

浙公网安备 33010602011771号