Errata

Spring Boot: Up and Running

Errata for Spring Boot: Up and Running

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
Other Digital Version chapter6end-java.zip (the source code on the O'Reilly site)
PlaneFinderService.java, line 24.

Sorry, bad news. There's a huge show-stopper bug in the book. The last seven chapters are built around examples of manipulating a data feed from Planefeeder. But nobody can access that feed, except contributors of the data (such as yourself). In the sample code for the book, which I downloaded from the O'Reilly website, the URL to access the Planefeeder feed is hard-coded to a device on your home network.

The fix is for you to revise the sample code. Take out the reference to the device in your home. Then, in PlaneFinderService.java, in saveSamplePositions(), after the three hard-coded Aircraft objects, add another 1000 Aircraft objects. Either as Java objects, or as JSON objects from real life, whichever is easier for you. That will give us enough data for a meaningful test of the manual code. (Three records are not enough!)

As for the first five chapters, no problem! They were helpful and I learned a lot from them. Thanks!

Beppe Sabatini  Nov 18, 2022 
PDF Page Chapter 5 page 60
Code missing

chapter5begin code is the same as chapter4end, it is not commited to github.
There is no @Value annotation in the whole code.

chapter5begin is missing completely

by alinvlad05

Alin Vlad OCP 8 Cluj  Dec 10, 2023 
PDF Page Chapter 5 page 60
Code missing

chapter5begin code is the same as chapter4end, it is not commited to github.
There is no @Value annotation in the whole code.

chapter5begin is missing completely

by alinvlad05

Alin Vlad OCP 8 Cluj  Dec 10, 2023 
PDF Page Chapter 7 code is Chapter 8 actually
Code missing

You need Chapter 8 code for Chapter 7
PositionController code in Chapter 8 is for Chapter 7.

Alin Vlad OCP 8 Cluj  Dec 14, 2023 
Mobi Page Preface
Download Code

I am not able to find the book source code in git or on oreilly site. Please clarify where I can find the code.

Anonymous  Mar 14, 2024 
Printed Page 30
Figure 3-3

In the constructor, UUID is referenced but not imported so in VS Code I get an error "UUID cannot be resolved".

```
public Coffee(String name) {
this(UUID.randomUUID().toString(), name);
}
```

If I add `import java.util.UUID;` at the top, my IDE stops complaining. Is this the/a correct solution?

Loving the book so far by the way!

John Heaven  Sep 02, 2023 
Printed Page 45
Last paragraph

javax.persistence has been renamed to jakarta.persistence. It doesn't exist anymore.

Ioan Surariu  Sep 15, 2023 
PDF Page 48
1st paragraph

When I read page 48, I noticed what follows:

> The first thing to do to enable repository support for our application is to define an interface specific to our application by extending a Spring Data Repository interface: .interfaceCoffeeRepo

I don't know what ".interfaceCoffeeRepo" means; is it a typo or is it a convention to express interface? Because I saw a sample code, here it is:

> interface CoffeeRepository extends CrudRepository<Coffee, String> {}

The interface name is "CoffeeRepository", not "interfaceCoffeeRepo".

Runbing  Jan 25, 2023 
Printed Page 98
"The results" paragraph

In order to run the example, the redis-server needs to be installed and running.
Otherwise the app is failing to start because it can't connect to Redis.
Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: localhost/127.0.0.1:6379

Anonymous  Oct 03, 2023 
Other Digital Version 205
WebSecurityConfigurerAdapter

in page 205 chapter 10 Securing Your Spring Boot Application,

the code use
WebSecurityConfigurerAdapter
and intellij shows this class is deprecated recently,

and I find an article explain:
Spring Security without the WebSecurityConfigurerAdapter

Anonymous  Oct 06, 2022 
PDF Page 239
First item on page

Spring Security Core is listed 2 times in Investigating Those Dependencies
Implementing OpenID Connect and OAuth2 for Authentication and Authorization
page 239 by alinvlad05

alinvlad05  Dec 26, 2023 
Other Digital Version 268
reactor-tools

in https github.com spring-attic reactor-tools, the repository README.md says,
reactor-tools is no longer actively maintained by VMware, Inc. and is archived

Anonymous  Nov 10, 2022