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> <
相關文章
相關標籤/搜索