---
title: "Discussion on \"Spring Dependency Injection and Autowiring\" | Hashnode"
description: "Discussion on \"Spring Dependency Injection and Autowiring\". In this article, we will understand how dependency injection work in Spring and what is Autowiring and why do we require it.\nDependency Injection\nLet's start by creating a plain Spring Boot project.\nAlso, let's create a POJO class - Student\nStudent c..."
url: "https://hashnode.com/posts/spring-dependency-injection-and-autowiring/61dc617ecda0d0294b69bc79"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Spring Dependency Injection and Autowiring](https://riteshpanigrahi.hashnode.dev/spring-dependency-injection-and-autowiring?utm_source=hashnode&utm_medium=feed)

In this article, we will understand how dependency injection work in Spring and what is Autowiring and why do we require it. Dependency Injection Let's start by creating a plain Spring Boot project. Also, let's create a POJO class - Student Student c...

Jan 10, 2022 · 6 min read · riteshpanigrahi.hashnode.dev  
Read the article

-   [#spring](https://hashnode.com/tag/spring)
-   [#springboot](https://hashnode.com/tag/springboot)
-   [#dependency-injection](https://hashnode.com/tag/dependency-injection)

## Written by

[Ritesh Panigrahi](https://hashnode.com/@ritesh03)

@ritesh03 · India

  
[View profile](https://hashnode.com/@ritesh03)

Software Engineer

🙌Hi, I'm Ritesh. Software Engineer at Walmart. Documenting my learning journey!

## Responses 2

Markdown supported · ⌘↵ to post

[Maddy](https://hashnode.com/@Maddy25)

[Jan 23, 2022](https://hashnode.com/posts/spring-dependency-injection-and-autowiring/61dc617ecda0d0294b69bc79/comment/61edc2bbe247b2151e61ad60)

Brilliant article [Ritesh Panigrahi](https://hashnode.com/@ritesh03)! 😁

You clarified many of my doubts.

The examples are simple and easy to follow.

I like how you added a picture of a container. It makes it easier to understand the concepts.

Fantastic work, well done! 👏🏾👏🏾👏🏾

[Ritesh Panigrahi](https://hashnode.com/@ritesh03)

[Jan 24, 2022](https://hashnode.com/posts/spring-dependency-injection-and-autowiring/61dc617ecda0d0294b69bc79/comment/61edc2bbe247b2151e61ad60#reply-61ee20dfe247b2151e61b2cd)

Thanks [Maddy](https://hashnode.com/@Maddy25). Glad that it helped!

[Dominik Nuszkiewicz](https://hashnode.com/@dnuszkiewicz)

[Jan 18, 2022](https://hashnode.com/posts/spring-dependency-injection-and-autowiring/61dc617ecda0d0294b69bc79/comment/61e6d5a2be5d7633af87dbc0)

Great article! Thanks for that.

[Ritesh Panigrahi](https://hashnode.com/@ritesh03)

[Jan 18, 2022](https://hashnode.com/posts/spring-dependency-injection-and-autowiring/61dc617ecda0d0294b69bc79/comment/61e6d5a2be5d7633af87dbc0#reply-61e6fe150204273bdcb0f828)

Thanks, Dominik. Glad you liked it!
