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. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

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

Version Location Description Submitted By Date submitted Date corrected
?
Chapter 3 (Figure 3-3, Figure 3-5)

In Figure 3-3 the `Coffee` domain object is created, but there is no constructor defined that takes only a String name. In Figure 3-5 the Constructor that takes only a String name is referenced. There is no discussion of this in the text, so folks are left without knowing the proper way to auto-populate the id of the Coffee object for the String only constructor.

Potential solution:

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

Note from the Author or Editor:
Great catch! I made some code changes as the example progressed and didn't realize I hadn't captured all of them in the text and supporting figure. Thanks!

Drew Farris  Jun 02, 2020 
?
Chapter 4

"[...] JPA to be able to assign a value to that memvar"
->
"[...] JPA to be able to assign a value to that member"

Note from the Author or Editor:
Hi, thanks for the note! I used "memvar" intentionally as a shortened version of "member variable", but after your comment it occurred to me that that's more of a C++-centric term (than Java) when used that way. It also doesn't help that it can refer to "memory variable" in compiler design. So...I'll remove it. Thank you for your feedback!

Ko Miyake  Jun 15, 2020 
Page N/A
Chapter 6

I don't think I can find the relevant docker scripts for starting databases such as MySQL in the GitLab repo. I have gone through chapter6begin and chapter6end and did not find any .yml files.

Note from the Author or Editor:
Hi,

Thanks for reporting this, there was a mixup in the repo contents. I reposted the scripts in a new repository, along with some guidance on how I use them; of course, you're welcome to fork the repo and adapt the scripts as suits your environment/needs.

Please check them out at https://github.com/mkheck/containerscripts-database

Thank you for choosing my book and for taking the time to report this! Best to you on your Spring Boot journey, I appreciate you bringing me along. :)

Best,
Mark

Anonymous  May 26, 2021 
Page 148
first general note (crow)

Regarding:
"I run a local instance of RabbitMQ using Docker; scripts for quick creation and startup/shutdown are provided in this book's associated repositories."


I cannot find them. I found container-scripts-database-master.zip, and it has Dockerfile and scripts for the various databases. I found the SpringBootUpAndRunning-chapterXend.zip files too. I cannot find the ockerfile for RabbitMQ.

Note from the Author or Editor:
Hi,

Thanks for reporting this, there was a mixup in the repo contents. I also have the scripts in my personal repository, along with some guidance on how I use them; of course, you're welcome to fork the repo and adapt the scripts as suits your environment/needs.

Please check them out at https://github.com/mkheck/LocalMessaging

Thank you for choosing my book and for taking the time to report this! Best to you on your Spring Boot journey, I appreciate you bringing me along. :)

Best,
Mark

Alexander Rios  Mar 27, 2022