Gating Custom Spring Boot Auto-configuration with @ConditionalOnProperty
Use @ConditionalOnProperty to load custom Spring Boot auto-configuration only when a property is present, preventing unused beans from starting in other environments.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Use @ConditionalOnProperty to load custom Spring Boot auto-configuration only when a property is present, preventing unused beans from starting in other environments.