---
title: "Discussion on \"Spring  Inversion of control & Dependency Injection\" | Hashnode"
description: "Discussion on \"Spring  Inversion of control & Dependency Injection\". What is Spring?\n\"Spring is an open-source lightweight framework that allows Java developers to build simple, reliable, and scalable enterprise applications\".\nAt its core spring is an implementation of  Invasion of Control , a popular enterprise desig..."
url: "https://hashnode.com/posts/spring-inversion-of-control-and-dependency-injection/6175cdfd0f452c1cd94fbca1"
---

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

Discussion

# [Spring Inversion of control & Dependency Injection](https://philipobiorah.hashnode.dev/spring-inversion-of-control-and-dependency-injection?utm_source=hashnode&utm_medium=feed)

What is Spring? "Spring is an open-source lightweight framework that allows Java developers to build simple, reliable, and scalable enterprise applications". At its core spring is an implementation of Invasion of Control , a popular enterprise desig...

Oct 24, 2021 · 4 min read · philipobiorah.hashnode.dev  
Read the article

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

## Written by

[PHILIP OBIORAH](https://hashnode.com/@philipobiorah)

@philipobiorah

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

Software Developer , Explore ML with Crowdsource Facilitator, Co - Organizer GDG Cloud Port Harcourt , Speaker, Community Builder

## Responses 2

Markdown supported · ⌘↵ to post

[geeks root](https://hashnode.com/@geeksroot)

[Mar 28, 2022](https://hashnode.com/posts/spring-inversion-of-control-and-dependency-injection/6175cdfd0f452c1cd94fbca1/comment/6241dad5db84f8c50fa5aabb)

We are a full-service digital agency building brands across all digital niches, including Website & App Development, DevOps, and Media Strategy. [web development](https://geeksroot.com/web-development) [hire a web developer](https://geeksroot.com/web-development)

[Shai Almog](https://hashnode.com/@talktotheduck)

[Oct 25, 2021](https://hashnode.com/posts/spring-inversion-of-control-and-dependency-injection/6175cdfd0f452c1cd94fbca1/comment/61760a217a94bb0be56751e2)

Nicely said. While I like Spring a lot, I'm not a huge fan of IoC because it makes failures harder to deal with. E.g. if a resource fails to load/inject the error messages are just unreadable.

But once it does work it's pretty cool. You can write simple objects that ignore most of the complex questions like "which database am I using" and "on which machine is it located". You can define defaults in the configuration and you can easily override them in production.
