But when you deploy your application or server into production, your error messages should be disabled or configured to reveal very generic information.
但一旦将应用程序或服务器部署到生产环境之后,您应该禁用错误消息,或配置为仅显示常见信息。
Create a global error handler at the page or application level that catches all unhandled exceptions and routes them to a generic error page.
在网页或应用程序层级建立全域错误处理常式,用来拦截所有未经处理的例外状况,并将其传送到泛用错误网页。
应用推荐