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

具体情况是这样的:

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

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

错误信息:

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:-LMLPHP

05-07 11:56