Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 47e3235

Browse files
Exception handling
1 parent 074553c commit 47e3235

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

‎src/main/resources/application.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ spring.datasource.url: jdbc:postgresql://localhost:5432/spring5tutorial
1515
spring.datasource.username: spring_user
1616
spring.datasource.password: spring
1717
spring.jpa.hibernate.ddl-auto: create
18+
19+
server.error.whitelabel.enabled: false

‎src/main/webapp/WEB-INF/jsp/error.jsp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
2+
<%@include file="includes/header.jsp"%>
3+
4+
<div class="alert alert-danger" role="alert">
5+
There was an unexpected error (type=${error}, status=${status}): <strong>${message}</strong>
6+
</div>
7+
8+
<%@include file="includes/footer.jsp"%>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /