Summary
This chapter helped you learn about Spring’s key concepts: beans, DI, and AOP. You also learned how to define the scope of beans and create ApplicationContext
programmatically, using it to get the beans. You can define beans’ configuration metadata using Java and annotations and have learned how to use different beans of the same type.
You also implemented an Aspect
example, applying a module approach to a cross-cutting concern, and learned the key concepts of the AOP programming paradigm.
Since we are going to implement REST APIs in this book, it is important to understand the servlet dispatcher concept.
In the next chapter, we’ll implement our first REST API application using the OpenAPI Specification and use a Spring controller to implement it.