DEV Community

Mujuzi Moses 
Mujuzi Moses 

Posted on

🚀 Building Spring by Example: Completing the Configuration Module

When I started building spring-by-example, my goal was simple:

Learn Spring by creating small, focused, runnable examples that explain not just how something works, but why it works.

Since then, the project has grown steadily, and I’ve just completed the Configuration module.

So far, the repository includes examples covering:

✅ Fundamentals

  • Spring Beans
  • Dependency Injection
  • Constructor Injection
  • Setter Injection
  • Field Injection
  • Choosing an Injection Strategy

✅ Bean Scopes (Core)

  • Singleton Scope
  • Prototype Scope

✅ Configuration

  • @Configuration
  • @bean
  • @Component
  • @Service
  • @Repository
  • @Controller
  • @ComponentScan
  • @import
  • @ImportResource
  • XML Configuration
  • Java Configuration
  • Mixing XML and Java Configuration

Each example is intentionally small, runnable, and documented so you can focus on understanding one concept at a time without the noise of a large application.

Next up is Dependency Injection, where I’ll be exploring topics like @primary, @Qualifier, collection injection, ObjectProvider, and more.

Building this repository has been a great way to deepen my own understanding while creating something I hope will be useful to others learning Spring.

If you’ve worked with Spring, which concept was your biggest “aha!” moment—or which one took the longest to truly understand?

java #springframework #opensource #github #learninginpublic #backend #softwareengineering

Top comments (0)