在web.xml 中添加错误页面配置,出现了这个报错

具体情况是这样的:

web.xml里报错:Multiple annotations found at this line:

web.xml里报错:Multiple annotations found at this line:

错误信息:

Multiple annotations found at this line:

- cvc-complex-type.2.2: Element 'location' must have no element [children], and

 the value must be valid.

- cvc-pattern-valid: Value 'error.jsp' is not facet-valid with respect to pattern

 '/.*' for type 'null'.

——解决方法:这是

因为文件的路径有误,缺少斜杆“/”,添上这个就好。

——修改后的效果:web.xml里报错:Multiple annotations found at this line:

 

相关文章:

  • 2021-04-21
  • 2022-12-23
  • 2022-01-21
  • 2022-12-23
  • 2021-08-04
  • 2021-05-31
  • 2021-12-03
  • 2021-04-23
猜你喜欢
  • 2021-07-07
  • 2022-12-23
  • 2021-07-06
  • 2021-05-15
  • 2022-12-23
  • 2021-05-20
  • 2021-05-28
相关资源
相似解决方案