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

      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 6

      • Learn Spring Security OAuth

        Focus on the new OAuth2 stack in Spring Security 6

    • Learn Spring

      From no experience to actually building stuff​

    • Learn Spring Data JPA

      The full guide to persistence with Spring Data JPA

  • Java Courses ▼▲
    • Learn Junit

      Master the most popular Java testing framework.

  • Guides ▼▲
    • Spring Boot

      Get started and go deep into Spring Boot 3

    • 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.

>> Using @Autowired and @InjectMocks in Spring Boot Tests

  • popular

>> Why Is Field Injection Not Recommended?

  • popular

>> Spring @Component Annotation

  • popular

>> Inject a Map from a YAML File with Spring

  • popular

>> Injecting a Value in a Static Field in Spring

  • popular

>> Disable Spring Autowiring for a Certain Bean

>> Properties in BeanFactoryPostProcessor

>> Autowiring an Interface With Multiple Implementations

>> Create Spring Prototype Scope Bean with Runtime Arguments

>> Dynamically Register Spring Beans Based on Properties

>> How to Autowire a Spring Bean in a Servlet Filter

>> Introduction to Avaje Inject

>> Self-Injection With Spring

>> Finding All Beans with a Custom Annotation

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

>> 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

>> Understanding getBean() in Spring

  • ↑ Back to Top
  • 1
  • 2
  • 3
  • Next →
The Baeldung logo

Courses

  • All Courses
  • Baeldung All Access
  • Baeldung All Team Access
  • The Courses Platform

Series

  • Java “Back to Basics” Tutorial
  • Learn Spring Boot Series
  • Spring Tutorial
  • Get Started with Java
  • Security with Spring
  • REST with Spring Series
  • All About String in Java

About

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