web.xml中配置以下内容:
<error-page>
<!-- 错误代码 -->
<error-code>404</error-code>
<!-- 错误页及路径 -->
<location>/page/404.html</location>
</error-page>
web.xml中配置以下内容:
<error-page>
<!-- 错误代码 -->
<error-code>404</error-code>
<!-- 错误页及路径 -->
<location>/page/404.html</location>
</error-page>