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

      From no experience to actually building stuff​

    • Learn Spring Data JPA

      The full guide to persistence with Spring Data JPA

    • View All Spring Courses

  • Java Courses ▼▲
    • Learn JUnit

      Master the most popular Java testing framework.

    • Learn Maven

      Simplify Your Build with Apache Maven

    • Learn Hibernate JPA

      Master persistence with the Java specification and Hibernate implementation

    • Learn Mockito

      Enhance your unit tests through practical mocking

    • View All Courses

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

Spring » Spring DI

The Spring framework is a very vast project that supports building modern applications, mainly enterprise web server applications. Have a look through a list of in-depth tutorials on the various Spring modules, including Spring MVC, Spring Security, Spring Cloud and many more.

  • Authentication (72)
  • Spring Annotations (69)
  • x Spring DI (54)
  • Spring MVC Basics (52)
  • Spring Properties (50)
  • Spring Core Basics (47)
  • Thymeleaf (47)
  • Spring Exception (41)
  • Messaging (39)
  • Boot Basics (35)
  • OAuth Legacy Stack (33)
  • RestTemplate (32)
  • WebClient (32)

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

  • popular

>> Why Is Field Injection Not Recommended?

  • popular

>> Spring @Component Annotation

  • popular

>> XML Defined Beans in Spring Boot

  • popular

>> Inject a Map from a YAML File with Spring

  • popular

>> Programmatic Bean Registration Mechanism With BeanRegistrar in Spring

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

>> Setting a Spring Bean to Null

>> Overriding Spring Beans in Integration Tests

>> Self-Injection With Spring

>> Instantiating Multiple Beans of the Same Class with Spring Annotations

>> Finding All Beans with a Custom Annotation

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

>> Differences Between applicationContext.xml and spring-servlet.xml in Spring

>> Where Should the Spring @Service Annotation Be Kept?

  • ↑ Back to Top
  • 1
  • 2
  • 3
  • Next →
Course – LSSO – NPI EA (tag = OAuth)
LSSO Course Banner
Course – Summer Sale 2026 – NPI EA (cat = Baeldung)
opt-in
Course – Summer Sale 2026 – NPI (All)
opt-in
The Baeldung logo

Courses

  • All Courses
  • Baeldung All Access
  • Baeldung All Team Access
  • Login Course Platform

Series

  • Java “Back to Basics” Tutorial
  • Spring Tutorial
  • Spring Framework Introduction
  • Learn Spring Boot Series
  • Get Started with Java
  • All About String in Java
  • Java IO Series

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