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

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

具体情况是这样的:

错误信息:

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'.

——解决方法:这是

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

——修改后的效果:

 

posted @ 2018-01-24 15:03  黑化何  阅读(991)  评论(0编辑  收藏  举报