SSH 框架 通用 错误返回页面 设置 --工作笔记

在web.xml里加入
<error-page>
  <error-code>404</error-code>
  <location>/404.html</location>
 </error-page>
 <error-page>
  <error-code>500</error-code>
  <location>/500.html</location>
 </error-page>

就这么简单

你可能感兴趣的:(web.xml,ssh,404,500,返回)