- Build an enterprise application throughout the book that communicates with a microservice
- Define and inject dependencies into your objects using the IoC container
- Make use of Spring's reactive features including tools and implement a reactive Spring MVC application
Spring is the most widely used framework for Java programming and with its latest update to 5.0, the framework is undergoing massive changes. Built to work with both Java 8 and Java 9, Spring 5.0 promises to simplify the way developers write code, while still being able to create robust, enterprise applications.
If you want to learn how to get around the Spring framework and use it to build your own amazing applications, then this book is for you.
Beginning with an introduction to Spring and setting up the environment, the book will teach you in detail about the Bean life cycle and help you discover the power of wiring for dependency injection. Gradually, you will learn the core elements of Aspect-Oriented Programming and how to work with Spring MVC and then understand how to link to the database and persist data configuring ORM, using Hibernate.
You will then learn how to secure and test your applications using the Spring-test and Spring-Security modules. At the end, you will enhance your development skills by getting to grips with the integration of RESTful APIs, building microservices, and doing reactive programming using Spring, as well as messaging with WebSocket and STOMP.
What you will learn
- Get to know the basics of Spring development and gain fundamental knowledge about why and where to use Spring Framework
- Explore the power of Beans using Dependency Injection, wiring, and Spring Expression Language
- Implement and integrate a persistent layer in your application and also integrate an ORM such as Hibernate
- Understand how to manage cross-cutting with logging mechanism, transaction management, and more using Aspect-oriented programming
- Explore Spring MVC and know how to handle requesting data and presenting the response back to the user
- Get to grips with the integration of RESTful APIs and Messaging with WebSocket and STOMP
- Master Reactive Programming using Spring MVC to handle non-blocking streams
About the Author
Tejaswini Mandar Jog is a passionate and enthusiastic Java trainer. She has more than nine years of experience in the IT training field, specializing in Java, J2EE, Spring, and relevant technologies. She has worked with many renowned corporate companies on training and skill enhancement programs. She is also involved in the development of projects using Java, Spring, and Hibernate. She wrote a book, Learning Modular Java Programming, which explores the power of modular programming for building applications with Java and Spring.
She was reading about Spring 5 on the internet when she got an email asking whether she would be interested in writing a book on Spring 5.0. It was a really big responsibility for her to work on this project. She had worked with Spring before, but this was altogether an exciting new experience. They decided to take up the challenge, she and Mandar (her better half).
Table of Contents
- Introduction to Spring
- Dependency Injection
- Accelerate with Spring DAO
- Aspect Oriented Programming
- Be Consistent : Manage Transaction
- Explore Spring MVC
- Be Assured: Take a Test Drive
- Make it Safe : Security Management
- Explore the Power of RESTFul Webservices
- Exchange Information: Use Messaging
- Be Active : Reactive Programming using Spring