From 3bedcaa601d2746c8889268fcac1960fd91dca66 Mon Sep 17 00:00:00 2001 From: haerong22 Date: Sun, 25 Jul 2021 00:42:39 +0900 Subject: [PATCH] exception : exception info(springboot) --- .../src/main/resources/application.properties | 10 +++++++++- .../src/main/resources/templates/error/500.html | 15 +++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/exception/src/main/resources/application.properties b/exception/src/main/resources/application.properties index a8972ad5..d22efb8b 100644 --- a/exception/src/main/resources/application.properties +++ b/exception/src/main/resources/application.properties @@ -1,3 +1,11 @@ # 스프링 기본 에러 페이지 -server.error.whitelabel.enabled=false +server.error.whitelabel.enabled=true +# 에러 정보 포함 여부 +# never : 사용하지 않음 +# always :항상 사용 +# on_param : 파라미터가 있을 때 사용 +server.error.include-exception=true +server.error.include-message=on_param +server.error.include-stacktrace=on_param +server.error.include-binding-errors=on_param diff --git a/exception/src/main/resources/templates/error/500.html b/exception/src/main/resources/templates/error/500.html index 9e716318..c627b10b 100644 --- a/exception/src/main/resources/templates/error/500.html +++ b/exception/src/main/resources/templates/error/500.html @@ -11,6 +11,21 @@

오류 화면 입니다.

+ +