Skip to content

Commit 3303b6b

Browse files
committed
Polish
1 parent 73d0afb commit 3303b6b

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

6/part1/src/main/java/com/greglturnquist/learningspringboot/HomeController.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ public Mono<String> index(Model model) {
7070
.findAllImages()
7171
.flatMap(image ->
7272
Mono.just(image)
73-
.and(repository.findByImageId(image.getId()).collectList()))
73+
.and(repository.findByImageId(
74+
image.getId()).collectList()))
7475
.map(imageAndComments -> new HashMap<String, Object>(){{
7576
put("id", imageAndComments.getT1().getId());
7677
put("name", imageAndComments.getT1().getName());

6/part1/src/main/resources/templates/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ <h1>Learning Spring Boot - 2nd Edition</h1>
2929
<!-- tag::comments[] -->
3030
<td>
3131
<ul>
32-
<li th:each="comment : ${image.comments}" th:text="${comment.comment}"></li>
32+
<li th:each="comment : ${image.comments}"
33+
th:text="${comment.comment}"></li>
3334
</ul>
3435
</td>
3536
<td>

6/part2/src/main/java/com/greglturnquist/learningspringboot/HomeController.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ public Mono<String> index(Model model) {
6363
.findAllImages()
6464
.flatMap(image ->
6565
Mono.just(image)
66-
.and(repository.findByImageId(image.getId()).collectList()))
66+
.and(repository.findByImageId(
67+
image.getId()).collectList()))
6768
.map(imageAndComments -> new HashMap<String, Object>(){{
6869
put("id", imageAndComments.getT1().getId());
6970
put("name", imageAndComments.getT1().getName());

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ <h1>Learning Spring Boot - 2nd Edition</h1>
2929
<!-- tag::comments[] -->
3030
<td>
3131
<ul>
32-
<li th:each="comment : ${image.comments}" th:text="${comment.comment}"></li>
32+
<li th:each="comment : ${image.comments}"
33+
th:text="${comment.comment}"></li>
3334
</ul>
3435
</td>
3536
<td>

6/part3/src/main/java/com/greglturnquist/learningspringboot/HomeController.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ public Mono<String> index(Model model) {
6363
.findAllImages()
6464
.flatMap(image ->
6565
Mono.just(image)
66-
.and(repository.findByImageId(image.getId()).collectList()))
66+
.and(repository.findByImageId(
67+
image.getId()).collectList()))
6768
.map(imageAndComments -> new HashMap<String, Object>(){{
6869
put("id", imageAndComments.getT1().getId());
6970
put("name", imageAndComments.getT1().getName());

6/part3/src/main/resources/templates/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ <h1>Learning Spring Boot - 2nd Edition</h1>
2929
<!-- tag::comments[] -->
3030
<td>
3131
<ul>
32-
<li th:each="comment : ${image.comments}" th:text="${comment.comment}"></li>
32+
<li th:each="comment : ${image.comments}"
33+
th:text="${comment.comment}"></li>
3334
</ul>
3435
</td>
3536
<td>

0 commit comments

Comments
 (0)