Skip to content

Commit 04cca3a

Browse files
committed
updated example source code
1 parent 6b02742 commit 04cca3a

7 files changed

Lines changed: 12 additions & 12 deletions

File tree

‎spring-boot/pom.xml‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@
2020
<groupId>org.springframework.boot</groupId>
2121
<artifactId>spring-boot-starter-thymeleaf</artifactId>
2222
</dependency>
23-
<dependency>
24-
<groupId>org.springframework.boot</groupId>
25-
<artifactId>spring-boot-starter-freemarker</artifactId>
26-
</dependency>
2723
<dependency>
2824
<groupId>org.springframework.boot</groupId>
2925
<artifactId>spring-boot-starter-web</artifactId>
@@ -32,7 +28,6 @@
3228
<groupId>org.springframework.boot</groupId>
3329
<artifactId>spring-boot-starter-data-jpa</artifactId>
3430
</dependency>
35-
3631
<dependency>
3732
<groupId>org.springframework.boot</groupId>
3833
<artifactId>spring-boot-starter-actuator</artifactId>

‎spring-boot/src/main/resources/application-errorhandling.properties‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ server.servlet-path=/
44
server.context-path=/
55
#server.error.whitelabel.enabled=false
66

7-
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration
7+
#spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration
88

99
#for Spring Boot 2.0+
10-
#spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration
11-
12-
#freemarker
13-
spring.freemarker.suffix=.ftl
10+
#spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration

spring-boot/src/main/resources/templates/error-404.ftl renamed to spring-boot/src/main/resources/templates/error-404.html

File renamed without changes.

spring-boot/src/main/resources/templates/error-500.ftl renamed to spring-boot/src/main/resources/templates/error-500.html

File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<body>
4-
<h1>Something went wrong! Our Engineers are on it</h1>
4+
<h1>Something went wrong! Our Engineers are on it temp</h1>
55
<a href="/">Go Home</a>
66
</body>
77
</html>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<html>
2+
<head>
3+
<title>RESOURCE NOT FOUND</title>
4+
</head>
5+
<body>
6+
<h1>404 RESOURCE NOT FOUND</h1>
7+
</body>
8+
</html>

‎spring-boot/src/main/resources/templates/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<link rel="stylesheet" href="/webjars/bootstrap/3.3.7-1/css/bootstrap.min.css" />
55
</head>
66
<body>
7-
7+
<h1>Welcome Home</h1>
88
<div class="container"><br/>
99
<div class="alert alert-success">
1010
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>

0 commit comments

Comments
 (0)