spring mvc 使用 @ControllerAdvice 捕获404异常

若是使用web.xml来自定义404页面,能够在web.xml中添加error-page:html <error-page> <!-- Missing login --> <error-code>401</error-code> <location>/general-error.html</location> </error-page> <error-page> <
相关文章
相关标签/搜索