{
  "id": 23800768,
  "title": "False Scent: When Spring Boot 4 Silently Ignores application.yml",
  "url": "https://urgent.news/2026/12/06/false-scent-when-spring-boot-4-silently-ignores-application-yml",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-12-06T09:31:57.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/szymon_kaczorowski/false-scent-when-spring-boot-4-silently-ignores-applicationyml-1bp5"
  },
  "original_language": null,
  "account": "False Scent: Spring Boot 4 Ignores application.yml Properties\n\nWhen configuring Spring Boot applications using application.yml, there are instances where seemingly valid properties are completely ignored by the framework. This issue became particularly evident during a production outage involving a peer-to-peer RSocket mesh. Dashboards appeared green, heartbeats flowed, and customer data ceased arriving without any warnings.\n\nInvestigating the problem led to the discovery that the configuration was being gated by a conditional annotation. RSocketProperties parsed and bound the fragment-size property cleanly, yet the wiring never loaded due to the conditional gating. This led to the bound property sitting orphaned in memory until a programmatic RSocketServerCustomizer replaced it.\n\nSpring Boot's auto-configuration engine operates on two largely independent pipelines: property binding and condition evaluation. Property binding checks if the YAML is valid for a bound properties class, while condition evaluation determines whether a specific auto-configuration class should participate in the application context. The two systems have no coupling, meaning Spring Boot emits no warning when a property binds cleanly to a *Properties bean while the specific @Bean method responsible for reading it backs out due to an unmet @Conditional* annotation.\n\nSpring Boot 4.0 introduced a modularization approach by breaking the monolithic spring-boot-autoconfigure JAR into focused technology modules, such as spring-boot-jdbc, spring-boot-cache, and spring-boot-rsocket. However, this change introduced a new silent failure mode during migrations. If a library like spring-kafka is brought in without its dedicated Spring Boot module, the corresponding auto-configuration class is simply absent. This results in the YAML staying valid, startup remaining green, and the property not being wired up.\n\nFour Silent @Conditional Traps:\n\n1. Caching Silently Falling Back to Unbounded ConcurrentHashMap:\n- When @EnableCaching is used with Caffeine or Redis TTLs in application.yml, memory climbs steadily in production pods.\n- In Spring Boot 4.0, SimpleCacheConfiguration fails to register due to missing dependencies and is forced to use a ConcurrentMapCacheManager.\n- The fix is to explicitly pin the cache type (caffeine or redis) to avoid the fallback to an unbounded ConcurrentHashMap.\n\n2. DataSource Pool Tuning Silently Dropping Back to 10 Connections:\n- Adding a second DataSource bean or writing a custom DataSource for credential rotation can cause connection timeouts in peak load scenarios.\n- In Spring Boot 4.0, DataSourceAutoConfiguration imports HikariDataSource guarded by @ConditionalOnMissingBean(DataSource.class).\n- If no DataSource is available, the pool reverts to the default 10-connection limit, leading to connection timeouts.\n- The solution is to explicitly configure the DataSource properties to prevent this silent fallback.",
  "summary": "Originally published on The Trail by Grupa VII . You copy a documented property straight from the Spring Boot reference guide into application.yml . Your IDE autocompletes it. The application boots cleanly with zero errors and zero warnings. And the setting does absolutely nothing. I learned that lesson the hard way during a real production outage on a peer-to-peer RSocket mesh (detailed in The…",
  "summary_source": "publisher",
  "key_points": [
    "Spring Boot 4 ignores application.yml properties due to conditional gating",
    "Two independent pipelines: property binding and condition evaluation",
    "Spring Boot 4 modularization introduces silent failure mode in migrations"
  ],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "outlets_capped": false,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}