Home for example code from Spring in Action 5.
Switch branches/tags
Nothing to show
Clone or download
Latest commit d0a04ac Sep 25, 2018
Permalink
Failed to load latest commit information.
ch01/tacos Initial commit of source code, pending publication of the book Sep 21, 2018
ch02/tacos Initial commit of source code, pending publication of the book Sep 21, 2018
ch03 Initial commit of source code, pending publication of the book Sep 21, 2018
ch04/tacos Initial commit of source code, pending publication of the book Sep 21, 2018
ch05/tacos Initial commit of source code, pending publication of the book Sep 21, 2018
ch06 Initial commit of source code, pending publication of the book Sep 21, 2018
ch07 Initial commit of source code, pending publication of the book Sep 21, 2018
ch08 Initial commit of source code, pending publication of the book Sep 21, 2018
ch09 Initial commit of source code, pending publication of the book Sep 21, 2018
ch10/reactor-fun Initial commit of source code, pending publication of the book Sep 21, 2018
ch11_12 Initial commit of source code, pending publication of the book Sep 21, 2018
ch13 Initial commit of source code, pending publication of the book Sep 21, 2018
ch14 Initial commit of source code, pending publication of the book Sep 21, 2018
ch15 Initial commit of source code, pending publication of the book Sep 21, 2018
ch16 Initial commit of source code, pending publication of the book Sep 21, 2018
ch17 Initial commit of source code, pending publication of the book Sep 21, 2018
ch18 Initial commit of source code, pending publication of the book Sep 21, 2018
ch19 Initial commit of source code, pending publication of the book Sep 21, 2018
LICENSE Initial commit of source code, pending publication of the book Sep 21, 2018
README.adoc Add Lombok to README Sep 25, 2018

README.adoc

Spring in Action 5 Sample Code

This is the sample code for Spring in Action, Fifth Edition, by Craig Walls (https://www.manning.com/books/spring-in-action-fifth-edition).

There is one folder for each chapter in the book—​except for chapters 11 and 12, which share a source folder—​each containing most or all of the sample code for that chapter.

This source code is available for download from the book’s page at Manning.com as well as in GitHub at https://github.com/habuma/spring-in-action-5-samples.

IMPORTANT: Lombok

To avoid having to write and maintain what is mostly boilerplate Java code, I’ve elected to use Lombok in all of these examples. When building from the command line, using Maven, you shouldn’t encounter any problems, as Lombok is included as part of the build process. But you will very likely encounter issues if you import these projects into your IDE.

If, after importing the projects into your IDE, you see errors complaining about missing getters, setters, constructors, or log instance variables, it’s because Lombok is not installed in your IDE. These bits of code will be generated by Lombok automatically, but your IDE doesn’t know that and complains that they are missing.

To fix the errors, simply install Lombok. Lombok has support for most common (and arguably a few uncommon) IDEs, so no matter which IDE you use, you should be covered. See https://projectlombok.org/setup/overview for details on installing Lombok in your IDE.