Skip to content

Glossary: Spring Boot Basics

@Autowired

An older annotation that marks a constructor or field for dependency injection. It isn't needed on a single constructor, but it is used on fields in tests.

Where the book teaches it

Related terms

Dependency injectionConstructor injection