Front Matter Spring Boot 2 Recipes A Problem-Solution Approach
Front Matter Spring Boot 2 Recipes A Problem-Solution Approach
Marten Deinum
Meppel, Drenthe, The Netherlands
I love you.
Introduction
Welcome to the first edition of Spring Boot 2 Recipes . It will focus on de-
veloping software using Spring Boot 2.1 and the supported projects like
Spring Security, Spring AMQP etc.
This book is for the developer who wants to simplify application develop-
ment and have a faster startup time for writing applications. Introducing
Spring Boot to you will simplify your application configuration. Using the
full power of Spring Boot simplifies your deployment and management as
well.
This book assumes that you are familiar with Java, Spring, and an IDE of
some sort. This book doesn’t explain all the internals and in-depth work-
ings of Spring or the related projects. For in-depth coverage, pick up a
copy of Spring 5 Recipes or Pro Spring MVC.
Chapter 2 , “Spring Boot – Basics,” covers the basic scenarios of how to de-
fine and configure a bean and do dependency injection with Spring Boot.
Conventions
In case a code line is too long to fit the page’s width, we will break it with
a code continuation character. Please note that when you try to type the
code, you have to concatenate the line by yourself without any spaces.
Prerequisites
To make the most out of this book, install JDK version 11 1 or higher. You
should have a Java IDE installed to make development easier. For this
book, most of the sample code is Maven 2 based, and most IDE’s have
build in support for Maven to manage the classpath. The samples all
make use of the Maven Wrapper 3 so you don’t necessarily need to install
Maven to be able to build the samples from the command line.
The source code for this book can be accessed by clicking the Download
Source Code link located at www.apress.com/9781484239629 . The source
code is organized by chapters, each of which includes one of more inde-
pendent examples.
I owe a big thanks to all the people at Apress for trying to keep me on
schedule while still keeping the quality and content up. Thank you for
giving me the chance to finish my fourth book and for the support. So a
very big thanks to all of you.
A book isn’t written in isolation and without the comments and sugges-
tions from the review, Manuel Jordan, some parts of the book would have
been quite different. So Manuel, thanks for the comments, suggestions,
and your time for reviewing this book (and reaching out to me).
Thanks to my family and friends for the times they had to miss me and
again to my dive buddies for all the dives and trips I missed.
Last but definitely not least, I thank my wife, Djoke Deinum, and daugh-
ters, Geeske and Sietske, for their endless support, love, and dedication,
despite the long evenings and sacrificed weekends and holidays to finish
the book. Without your support, I probably would have abandoned the
endeavor long ago.
Table of Contents
Marten Deinum
is a
submit-
ter on
the
open
source
Spring
2 https://maven.apache.org/
3 https://github.com/takari/maven-wrapper
4 https://www.docker.com