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

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

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.

  • Spring Annotations (43)
  • Thymeleaf (39)
  • Authentication (34)
  • x Spring DI (33)
  • Spring Core Basics (28)
  • Spring 5 (27)
  • Exception (24)
  • Spring MVC Basics (24)
  • RestTemplate (23)
  • Boot Basics (20)
  • Spring WebFlux (20)
  • WebClient (20)
  • OAuth Legacy Stack (16)
  • Swagger (15)
  • OAuth New Stack (15)

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

>> Why Is Field Injection Not Recommended?

>> Self-Injection With Spring

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

>> Spring @Component Annotation

>> Inject a Map from a YAML File with Spring

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

>> 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
eBook – RwS All – NPI (everywhere)
opt-in
Building a REST API with Spring?
Download the E-book
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

Follow the Spring Category

Follow the Spring category to get regular info about the new articles and tutorials we publish here.