This book covers the Spring Framework, the Java application framework of choice for tens of thousands of Java developers worldwide. We feel it is important to introduce you to the Spring Framework by showing you how to use it. So we wrote a book that uses a complex sample application to demonstrate how the Spring Framework is used in a typical business application. By exploring the code from the sample application, presented throughout this book, you will benefit from many insights in application development. This is important knowledge for any developer, no matter how many years of experience you have.
Ultimately, the goal of this book is to make you, the reader, more efficient as a Java developer by taking the things that are good about the Java platform and using them in the most efficient and reliable way.
In this book, we focus on how to be successful in two areas that are important in software development: simplicity and consistency. Both goals can be achieved with the Spring Framework, although creating a simple design requires effort from your side as well. The concept of API consistency involves applying the same design and coding pattern where applicable. Clients of a consistent API feel at home when using it, and are able to concentrate on its logic instead of its semantics. The Spring Framework excels at bringing consistency to the Java platform. We’re going to show you how to leverage this consistency to make your applications more consistent.
Simplicity in software development means four things:
• To implement only the functionality that is absolutely required and nothing more
• To write code that is as clean, readable, and simple as possible
• To write code that is easy to test and is tested only once
• To streamline the development process cycle to be as agile and rapid as possible (taking into account the settings of your projects)
The Spring Framework enables you to implement your applications in a simple way, but it does not stop you from writing overly complex software that is hard to test and doesn’t deliver what is expected. This book will guide you in achieving simplicity in your code and show you how the Spring Framework helps to write simple code that is easy to test.