Setup error handling

xiaoxiao2021-03-06  75

The usual HTTP access exception contains 404 Not Found and 500 INTERNAL ERROR, in order to provide users more friendly display, you can do the following configuration:

404

/common/404.jsp

500

/common/500.jsp

By configuring, when the user accesses the page does not exist in the application, the user will guide the user to the /common/404.jsp page. Similarly, when an abnormal error occurs, /common/500.jsp is displayed to the user.

转载请注明原文地址:https://www.9cbs.com/read-121170.html

New Post(0)