The Baeldung logo
  • The Baeldung Logo
  • Start Here
  • Courses ▼▲
    • REST with Spring

      The canonical reference for building a production grade API with Spring

    • Learn Spring Security ▼▲

      THE unique Spring Security education if you’re working with Java today

      • Learn Spring Security Core

        Focus on the Core of Spring Security 5

      • Learn Spring Security OAuth

        Focus on the new OAuth2 stack in Spring Security 5

    • Learn Spring

      From no experience to actually building stuff​

    • Learn Spring Data JPA

      The full guide to persistence with Spring Data JPA

  • Guides ▼▲
    • Persistence

      The Persistence with Spring guides

    • REST

      The guides on building REST APIs with Spring

    • Security

      The Spring Security guides

  • About ▼▲
    • Full Archive

      The high level overview of all the articles on the site.

    • Baeldung Ebooks

      Discover all of our eBooks

    • About Baeldung

      About Baeldung.

  • Category upSpring

Tag: Spring DI

Dependency Injection is a core part of the Spring framework. It allows us to achieve loose coupling between our components. The guides below cover everything related to dependency injection.

>> Spring @Autowired Field Null – Common Causes and Solutions

>> Spring @Component Annotation

>> Inject a Map from a YAML File with Spring

>> Injecting Spring Beans into Unmanaged Objects

>> How to dynamically Autowire a Bean in Spring

>> Creating Spring Beans Through Factory Methods

>> Difference Between BeanFactory and ApplicationContext

>> Injecting a Value in a Static Field in Spring

>> Understanding getBean() in Spring

>> Using @Autowired in Abstract Classes

>> Spring Dependency Injection

>> Unsatisfied Dependency in Spring

>> Spring Autowiring of Generic Types

>> Spring Component Scanning

>> Spring @Primary Annotation

>> @Component vs @Repository and @Service in Spring

>> Spring Core Annotations

>> Spring – Injecting Collections

>> @Order in Spring

>> @Lookup Annotation in Spring

>> Injecting Prototype Beans into a Singleton Instance in Spring

>> XML-Based Injection in Spring

>> Constructor Injection in Spring with Lombok

>> Intro to Inversion of Control and Dependency Injection with Spring

>> How to use the Spring FactoryBean?

>> Constructor Dependency Injection in Spring

>> Circular Dependencies in Spring

>> Wiring in Spring: @Autowired, @Resource and @Inject

>> Guide to Spring @Autowired

>> Quick Guide to Spring Bean Scopes

>> Injecting Mockito Mocks into Spring Beans

>> Spring NoSuchBeanDefinitionException

  • ↑ Back to Top
The Baeldung logo

Courses

  • All Courses
  • All Bulk Courses
  • All Bulk Team Courses
  • The Courses Platform

Series

  • Java “Back to Basics” Tutorial
  • Jackson JSON Tutorial
  • Apache HttpClient Tutorial
  • REST with Spring Tutorial
  • Spring Persistence Tutorial
  • Security with Spring
  • Spring Reactive Tutorials

About

  • About Baeldung
  • The Full Archive
  • Editors
  • Jobs
  • Our Partners
  • Partner with Baeldung
  • Terms of Service
  • Privacy Policy
  • Company Info
  • Contact
The Baeldung Logo