Skip to content

Glossary: Spring Boot Basics

Constructor injection

Spring passing a bean what it needs as constructor arguments. It is the recommended way, and a single constructor needs no annotation.

Where the book teaches it

Related terms

Dependency injection@Autowired