异常信息:

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*)".
JakartaEE Struts2 The content of element type "package" must match "(result-types?,interceptors?,...
异常.png

异常原因:

Struts2 框架中配置文件要按照顺序来写:

result-types 
interceptors 
default-interceptor-ref 
default-action-ref 
default-class-ref 
global-results 
global-exception-mappings 
action*

解决方法:

按照如上顺序排列:


JakartaEE Struts2 The content of element type "package" must match "(result-types?,interceptors?,...
解决方法.png

相关文章:

  • 2021-04-13
  • 2021-07-23
  • 2022-12-23
  • 2021-06-09
  • 2021-07-22
  • 2021-07-02
猜你喜欢
  • 2022-01-30
  • 2021-09-28
  • 2022-12-23
  • 2021-11-29
  • 2021-10-27
  • 2021-10-16
相关资源
相似解决方案