<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Mujuzi Moses </title>
    <description>The latest articles on DEV Community by Mujuzi Moses  (@iammujuzimoses).</description>
    <link>https://dev.to/iammujuzimoses</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4047712%2F948e3867-6c70-4e52-8f3b-ea5264b061a1.png</url>
      <title>DEV Community: Mujuzi Moses </title>
      <link>https://dev.to/iammujuzimoses</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/iammujuzimoses"/>
    <language>en</language>
    <item>
      <title>🚀 Building Spring by Example: Completing the Bean Lifecycle Module</title>
      <dc:creator>Mujuzi Moses </dc:creator>
      <pubDate>Thu, 13 Aug 2026 12:00:30 +0000</pubDate>
      <link>https://dev.to/iammujuzimoses/building-spring-by-example-completing-the-bean-lifecycle-module-48kh</link>
      <guid>https://dev.to/iammujuzimoses/building-spring-by-example-completing-the-bean-lifecycle-module-48kh</guid>
      <description>&lt;p&gt;When I started learning Spring, I noticed something about many of the tutorials I found.&lt;/p&gt;

&lt;p&gt;They often showed how to use a feature, but not always why it worked or when you should choose one approach over another.&lt;/p&gt;

&lt;p&gt;I learn best by building things and documenting what I discover, so I started a project called &lt;strong&gt;spring-by-example&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The idea is simple: instead of building one large application, I’m creating a collection of small, focused examples where each example explores a specific Spring concept with clear explanations, tests, and documentation.&lt;/p&gt;

&lt;p&gt;I’m happy to say that I’ve now completed &lt;strong&gt;Module 5 — Bean Lifecycle&lt;/strong&gt;. 🎉&lt;/p&gt;

&lt;p&gt;The module covers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;InitializingBean&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;DisposableBean&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;@PostConstruct&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;@PreDestroy&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;BeanPostProcessor&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;BeanFactoryPostProcessor&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;SmartLifecycle&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One thing I’ve really enjoyed about this module is seeing how these concepts fit into different stages of the Spring container lifecycle.&lt;/p&gt;

&lt;p&gt;For example, &lt;code&gt;@PostConstruct&lt;/code&gt; and &lt;code&gt;InitializingBean&lt;/code&gt; help with bean initialization, while &lt;code&gt;@PreDestroy&lt;/code&gt; and &lt;code&gt;DisposableBean&lt;/code&gt; provide ways to perform cleanup.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;BeanPostProcessor&lt;/code&gt; introduced another interesting part of Spring: processing bean instances before and after initialization. &lt;code&gt;BeanFactoryPostProcessor&lt;/code&gt; took that a step further by working with bean definitions before the actual bean instances are created.&lt;/p&gt;

&lt;p&gt;And with &lt;code&gt;SmartLifecycle&lt;/code&gt;, I explored how Spring can coordinate the startup and shutdown of components that have an active running state.&lt;/p&gt;

&lt;p&gt;The goal isn’t just to collect Spring annotations and interfaces. I’m trying to understand how the Spring container works and why these features exist, one concept at a time.&lt;/p&gt;

&lt;p&gt;The project is open source, and I’m continuing to build it as I learn:&lt;/p&gt;

&lt;p&gt;🔗 GitHub: &lt;a href="https://github.com/IamMujuziMoses/spring-by-example" rel="noopener noreferrer"&gt;githu.b/mujuzimoses&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There’s still a long way to go, but completing another module feels like a good milestone. 🚀&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Next up: Events&lt;/strong&gt; — exploring how Spring components can communicate through application events, including custom events, transactional events, and asynchronous events.&lt;/p&gt;

&lt;p&gt;If you’ve worked with Spring before, what’s one part of the Spring bean lifecycle you think developers commonly misunderstand?&lt;/p&gt;

&lt;h1&gt;
  
  
  java #springframework #opensource #github #learninginpublic #backend #softwareengineering #spring #beanlifecycl
&lt;/h1&gt;

</description>
      <category>java</category>
      <category>opensource</category>
      <category>spring</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>🚀 Building Spring by Example: Completing the Dependency Injection Module</title>
      <dc:creator>Mujuzi Moses </dc:creator>
      <pubDate>Mon, 10 Aug 2026 11:28:16 +0000</pubDate>
      <link>https://dev.to/iammujuzimoses/building-spring-by-example-completing-the-dependency-injection-module-4ehg</link>
      <guid>https://dev.to/iammujuzimoses/building-spring-by-example-completing-the-dependency-injection-module-4ehg</guid>
      <description>&lt;p&gt;When I started learning Spring, I noticed something about many of the tutorials I found.&lt;/p&gt;

&lt;p&gt;They often showed how to use a feature, but not always why it worked or when you should choose one approach over another.&lt;/p&gt;

&lt;p&gt;I learn best by building things and documenting what I discover, so I started a project called spring-by-example.&lt;/p&gt;

&lt;p&gt;The idea is simple: instead of building one large application, I’m creating a collection of small, focused examples where each example explores a specific Spring concept with clear explanations, tests, and documentation.&lt;/p&gt;

&lt;p&gt;I’m happy to say that I’ve now completed Module 4 — Dependency Injection. 🎉&lt;/p&gt;

&lt;p&gt;The module covers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a class="mentioned-user" href="https://dev.to/primary"&gt;@primary&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;@Qualifier&lt;/li&gt;
&lt;li&gt;Collection Injection&lt;/li&gt;
&lt;li&gt;@Order&lt;/li&gt;
&lt;li&gt;Map Injection&lt;/li&gt;
&lt;li&gt;ObjectProvider&lt;/li&gt;
&lt;li&gt;Optional Dependencies&lt;/li&gt;
&lt;li&gt;Circular Dependencies&lt;/li&gt;
&lt;li&gt;Bean Aliases&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One thing I’ve really enjoyed about this module is seeing how these concepts build on each other.&lt;/p&gt;

&lt;p&gt;For example, &lt;a class="mentioned-user" href="https://dev.to/primary"&gt;@primary&lt;/a&gt; and @Qualifier help resolve multiple candidates, while collection and map injection let us work with multiple beans. ObjectProvider introduces more flexible bean retrieval, and examples like circular dependencies show what can go wrong when the dependency graph isn’t designed carefully.&lt;/p&gt;

&lt;p&gt;The goal isn’t just to collect Spring annotations. I’m trying to understand how the Spring container works and why these features exist, one concept at a time.&lt;/p&gt;

&lt;p&gt;The project is open source, and I’m continuing to build it as I learn:&lt;/p&gt;

&lt;p&gt;🔗 GitHub: &lt;a href="https://github.com/IamMujuziMoses/spring-by-example" rel="noopener noreferrer"&gt;github&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There’s still a long way to go, but completing another module feels like a good milestone. 🚀&lt;/p&gt;

&lt;p&gt;Next up: Bean Lifecycle — understanding how Spring creates, initializes, and destroys beans.&lt;/p&gt;

&lt;p&gt;If you’ve worked with Spring before, what’s one dependency injection concept you think developers commonly misunderstand?&lt;/p&gt;

&lt;h1&gt;
  
  
  java #springframework #opensource #github #learninginpublic #backend #softwareengineering #dependencyinjection
&lt;/h1&gt;

</description>
      <category>java</category>
      <category>opensource</category>
      <category>spring</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>🚀 Building Spring by Example: Completing the Configuration Module</title>
      <dc:creator>Mujuzi Moses </dc:creator>
      <pubDate>Wed, 05 Aug 2026 11:30:29 +0000</pubDate>
      <link>https://dev.to/iammujuzimoses/building-spring-by-example-completing-the-configuration-module-1eco</link>
      <guid>https://dev.to/iammujuzimoses/building-spring-by-example-completing-the-configuration-module-1eco</guid>
      <description>&lt;p&gt;When I started building spring-by-example, my goal was simple:&lt;/p&gt;

&lt;p&gt;Learn Spring by creating small, focused, runnable examples that explain not just how something works, but why it works.&lt;/p&gt;

&lt;p&gt;Since then, the project has grown steadily, and I’ve just completed the Configuration module.&lt;/p&gt;

&lt;p&gt;So far, the repository includes examples covering:&lt;/p&gt;

&lt;p&gt;✅ Fundamentals&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Spring Beans&lt;/li&gt;
&lt;li&gt;Dependency Injection&lt;/li&gt;
&lt;li&gt;Constructor Injection&lt;/li&gt;
&lt;li&gt;Setter Injection&lt;/li&gt;
&lt;li&gt;Field Injection&lt;/li&gt;
&lt;li&gt;Choosing an Injection Strategy&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;✅ Bean Scopes (Core)&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Singleton Scope&lt;/li&gt;
&lt;li&gt;Prototype Scope&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;✅ Configuration&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;@Configuration&lt;/li&gt;
&lt;li&gt;&lt;a class="mentioned-user" href="https://dev.to/bean"&gt;@bean&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;@Component&lt;/li&gt;
&lt;li&gt;@Service&lt;/li&gt;
&lt;li&gt;@Repository&lt;/li&gt;
&lt;li&gt;@Controller&lt;/li&gt;
&lt;li&gt;@ComponentScan&lt;/li&gt;
&lt;li&gt;&lt;a class="mentioned-user" href="https://dev.to/import"&gt;@import&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;@ImportResource&lt;/li&gt;
&lt;li&gt;XML Configuration&lt;/li&gt;
&lt;li&gt;Java Configuration&lt;/li&gt;
&lt;li&gt;Mixing XML and Java Configuration&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;Next up is Dependency Injection, where I’ll be exploring topics like &lt;a class="mentioned-user" href="https://dev.to/primary"&gt;@primary&lt;/a&gt;, @Qualifier, collection injection, ObjectProvider, and more.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

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

&lt;h1&gt;
  
  
  java #springframework #opensource #github #learninginpublic #backend #softwareengineering
&lt;/h1&gt;

</description>
      <category>java</category>
      <category>opensource</category>
      <category>spring</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>🚀 Building Spring by Example</title>
      <dc:creator>Mujuzi Moses </dc:creator>
      <pubDate>Sun, 26 Jul 2026 09:32:09 +0000</pubDate>
      <link>https://dev.to/iammujuzimoses/building-spring-by-example-jkg</link>
      <guid>https://dev.to/iammujuzimoses/building-spring-by-example-jkg</guid>
      <description>&lt;p&gt;When I started learning Spring, I noticed something about the tutorials I found.&lt;/p&gt;

&lt;p&gt;Many showed how to use a feature, but not always why it worked or when you should choose one approach over another.&lt;/p&gt;

&lt;p&gt;I learn best by building things and documenting what I discover, so I decided to start a project called spring-by-example.&lt;/p&gt;

&lt;p&gt;Instead of creating one large application, I’m building a collection of small, focused examples—each one exploring a single Spring concept with clear explanations, tests, and documentation.&lt;/p&gt;

&lt;p&gt;So far I’ve worked through:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Spring Beans&lt;/li&gt;
&lt;li&gt;Dependency Injection&lt;/li&gt;
&lt;li&gt;Constructor Injection&lt;/li&gt;
&lt;li&gt;Setter Injection&lt;/li&gt;
&lt;li&gt;Field Injection&lt;/li&gt;
&lt;li&gt;Choosing an Injection Strategy&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I’m sharing the journey here as I continue learning. My hope is that, over time, this grows into a resource that helps other developers understand Spring one concept at a time.&lt;/p&gt;

&lt;p&gt;If you’ve learned Spring, what concept took you the longest to fully understand?&lt;/p&gt;

&lt;h1&gt;
  
  
  java #springframework #opensource #github #learninginpublic #backend #softwareengineering
&lt;/h1&gt;

</description>
      <category>beginners</category>
      <category>java</category>
      <category>learning</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
