You are previewing Spring in Practice.

Spring in Practice

Cover of Spring in Practice by Willie Wheeler with Joshua White Published by Manning Publications

Chapter 1. Introducing Spring: the dependency injection container

This chapter covers

  • Major functional areas of the Spring Framework
  • Flexible configuration using dependency injection
  • Wiring beans using XML
  • Autowiring and component scanning using annotations

In this chapter, we’ll provide a brief overview of the Spring Framework, beginning with a discussion of what Spring is and giving an overview of its major pieces. Then we’ll delve into the underlying principles behind the Spring Framework, and talk about inversion of control and how it relates to dependency injection. Finally, we’ll dive into a small example that shows how to use the Spring Core Container hands-on. Let’s get started.

1.1. What is Spring, and why use it?

The Spring ...

The best content for your career. Discover unlimited learning on demand for around $1/day.