Skip to content

Commit 3a6f954

Browse files
committed
Polish up chapter 5
1 parent 421593d commit 3a6f954

File tree

5 files changed

+21
-5
lines changed

5 files changed

+21
-5
lines changed

5/part1/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ repositories {
3131
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
3232
}
3333

34+
ext['thymeleaf-spring5.version'] = '3.0.8-SNAPSHOT'
35+
3436
dependencies {
3537
compile('org.springframework.boot:spring-boot-starter-webflux')
3638
compile('org.synchronoss.cloud:nio-multipart-parser:1.1.0')

5/part2/build.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ jar {
2727
baseName = 'learning-spring-boot'
2828
version = '0.0.1-SNAPSHOT'
2929
}
30+
31+
// tag::build-info[]
32+
springBoot {
33+
buildInfo()
34+
}
35+
// end::build-info[]
36+
3037
sourceCompatibility = 1.8
3138
targetCompatibility = 1.8
3239

@@ -37,6 +44,8 @@ repositories {
3744
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
3845
}
3946

47+
ext['thymeleaf-spring5.version'] = '3.0.8-SNAPSHOT'
48+
4049
dependencies {
4150
compile('org.springframework.boot:spring-boot-starter-actuator')
4251
compile('org.springframework.boot:spring-boot-starter-data-mongodb-reactive')
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
spring.devtools.remote.secret=learning-spring-boot
1+
spring.devtools.remote.secret=learning-spring-boot
2+
endpoints.default.web.enabled=true

5/part2/src/main/resources/templates/index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
<body>
99

1010
<h1>Learning Spring Boot - 2nd Edition</h1>
11+
12+
<h2>It's really handy to make local edits and watch them go out to the cloud automatically</h2>
13+
14+
<h4 th:text="${extra}"></h4>
1115

1216
<div>
1317
<table>

settings.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ rootProject.name = 'learning-spring-boot'
1010
//
1111
//include '4/part1'
1212
//include '4/part2'
13-
//
14-
//include '5/part1'
15-
//include '5/part2'
16-
//
13+
14+
include '5/part1'
15+
include '5/part2'
16+
1717
//include '6/part1'
1818
//include '6/part2'
1919
//include '6/part3'

0 commit comments

Comments
 (0)