Skip to content

Commit

Permalink
스프링 부트 - 오류 페이지2
Browse files Browse the repository at this point in the history
  • Loading branch information
kiteB committed Oct 3, 2021
1 parent b7b4918 commit 89a9312
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
7 changes: 6 additions & 1 deletion exception/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
server.error.whitelabel.enabled=false
server.error.whitelabel.enabled=false

server.error.include-exception=true
server.error.include-message=on_param
server.error.include-stacktrace=on_param
server.error.include-binding-errors=on_param
14 changes: 14 additions & 0 deletions exception/src/main/resources/templates/error/500.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,20 @@ <h2>500 오류 화면 스프링 부트 제공</h2>
<div>
<p>오류 화면 입니다.</p>
</div>
<ul>
<li>오류 정보</li>
<ul>
<li th:text="|timestamp: ${timestamp}|"></li>
<li th:text="|path: ${path}|"></li>
<li th:text="|status: ${status}|"></li>
<li th:text="|message: ${message}|"></li>
<li th:text="|error: ${error}|"></li>
<li th:text="|exception: ${exception}|"></li>
<li th:text="|errors: ${errors}|"></li>
<li th:text="|trace: ${trace}|"></li>
</ul>
</li>
</ul>
<hr class="my-4">
</div> <!-- /container -->
</body>
Expand Down

0 comments on commit 89a9312

Please sign in to comment.