当前位置: 代码迷 >> 综合 >> SSM中web.xml中配置错误页面时error-page ()报错
  详细解决方案

SSM中web.xml中配置错误页面时error-page ()报错

热度:99   发布时间:2023-10-28 17:17:36.0

报错详情:

Multiple annotations found at this line:

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

页面显示错误:


报错原因:

错误页面路径格式有误.

解决办法:在错误页面前加“ /

如下<location>/error.html</location>


  相关解决方案