<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Configuration on Java &amp; Software Architecture Knowledge Hub</title><link>https://samirsahoo.github.io/design-patterns-hub/tags/configuration/</link><description>Recent content in Configuration on Java &amp; Software Architecture Knowledge Hub</description><generator>Hugo</generator><language>en-US</language><copyright>© 2026 Samir Kumar Sahoo (https://github.com/samirsahoo). All rights reserved.</copyright><atom:link href="https://samirsahoo.github.io/design-patterns-hub/tags/configuration/index.xml" rel="self" type="application/rss+xml"/><item><title>Externalized Configuration and @ConfigurationProperties</title><link>https://samirsahoo.github.io/design-patterns-hub/spring/boot/externalized-configuration/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/spring/boot/externalized-configuration/</guid><description>&lt;h2 id="simple-definition"&gt;Simple definition&lt;a class="heading-anchor" href="#simple-definition" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;&lt;strong&gt;Externalized configuration&lt;/strong&gt; keeps environment-specific values (URLs, credentials, limits, feature flags) &lt;strong&gt;outside the code&lt;/strong&gt;, so the &lt;strong&gt;same artifact&lt;/strong&gt; runs in development, test and production. Spring Boot merges many &lt;strong&gt;property sources&lt;/strong&gt; into one &lt;code&gt;Environment&lt;/code&gt;, and binds values into type-safe objects with &lt;strong&gt;&lt;code&gt;@ConfigurationProperties&lt;/code&gt;&lt;/strong&gt;.&lt;/p&gt;</description></item><item><title>Spring Configuration: @Configuration, @Bean, Component Scanning and Profiles</title><link>https://samirsahoo.github.io/design-patterns-hub/spring/core/configuration-and-component-scanning/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/spring/core/configuration-and-component-scanning/</guid><description>&lt;h2 id="simple-definition"&gt;Simple definition&lt;a class="heading-anchor" href="#simple-definition" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Spring learns &lt;strong&gt;which beans to create&lt;/strong&gt; in three main ways:&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;&lt;strong&gt;Component scanning&lt;/strong&gt;: annotate your classes (&lt;code&gt;@Component&lt;/code&gt;, &lt;code&gt;@Service&lt;/code&gt; and so on) and Spring finds them.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Java configuration&lt;/strong&gt;: &lt;code&gt;@Bean&lt;/code&gt; factory methods inside &lt;code&gt;@Configuration&lt;/code&gt; classes, ideal for third-party classes you cannot annotate.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Auto-configuration&lt;/strong&gt;: Spring Boot&amp;rsquo;s conditional defaults. See &lt;a href="https://samirsahoo.github.io/design-patterns-hub/spring/boot/auto-configuration-and-conditions/"&gt;auto-configuration&lt;/a&gt;.&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;h2 id="the-problem"&gt;The problem&lt;a class="heading-anchor" href="#the-problem" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Without a clear configuration strategy, applications end up with duplicate beans, surprising overrides, beans scanned from the wrong packages, and environment-specific code paths scattered everywhere.&lt;/p&gt;</description></item><item><title>Centralized Configuration with Spring Cloud Config</title><link>https://samirsahoo.github.io/design-patterns-hub/microservices/fundamentals/centralized-configuration/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/microservices/fundamentals/centralized-configuration/</guid><description>&lt;h2 id="simple-definition"&gt;Simple definition&lt;a class="heading-anchor" href="#simple-definition" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;&lt;strong&gt;Centralized configuration&lt;/strong&gt; stores the configuration of many services in &lt;strong&gt;one versioned, audited place&lt;/strong&gt; and serves it to them at startup (and optionally at runtime). &lt;strong&gt;Spring Cloud Config&lt;/strong&gt; provides a &lt;strong&gt;Config Server&lt;/strong&gt; (an HTTP API in front of Git, Vault or other backends) and a client that plugs into Spring Boot&amp;rsquo;s &lt;a href="https://samirsahoo.github.io/design-patterns-hub/spring/boot/externalized-configuration/"&gt;externalized configuration&lt;/a&gt;.&lt;/p&gt;</description></item></channel></rss>