This is the code repository for Spring 5 Design Patterns, published by Packt. It contains all the supporting project files necessary to work through the book from start to finish.
This book will take you through design patterns and best practices required with the Spring Framework. You will learn to use these design patterns to solve common problems when designing an application or system using the Spring Framework. This book will take you through not only the essential GoF design patterns but also those patterns, considerations, and best practices required at different stages in Application Development. This book also demonstrates the Reactive design pattern approach to making application scalable.
All of the code is organized into folders.
The code will look like the following:
public class JdbcTransferRepository implements TransferRepository{
JdbcTemplate jdbcTemplate;
public setDataSource(DataSource dataSource) {
this.jdbcTemplate = new JdbcTemplate(dataSource);
}
// ...
}
This book can be read without a computer or laptop at hand, in which case you need nothing more than the book itself. Although to follow the examples in the book, you need Java 8, which you can download from http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html. You will also need your favorite IDE for the examples, but I have used the Software Spring Tool Suite; download the latest version of Spring Tool Suite (STS) from https://spring.io/tools/sts/all according to your system OS. The Java 8 and STS work on a variety of platforms--Windows, macOS, and Linux.