Tagged articles

ConditionalOnProperty

6 articles · Page 1 of 1
Java Tech Workshop
Java Tech Workshop
Apr 10, 2026 · Backend Development

Build a Private Spring Boot Starter from Scratch

This tutorial walks through the complete process of creating a custom Spring Boot starter—covering its core concepts, Maven setup, configuration properties, auto‑configuration class, conditional bean loading, packaging, testing, and best‑practice tips—so developers can encapsulate reusable components and plug them into other projects with zero configuration effort.

ConditionalOnPropertyCustom StarterMaven
0 likes · 20 min read
Build a Private Spring Boot Starter from Scratch
Coder Trainee
Coder Trainee
Mar 30, 2026 · Backend Development

Mastering @ConditionalOnProperty: Controlling Bean Activation in Spring Boot

This article explains how Spring Boot's @ConditionalOnProperty annotation determines whether a configuration class or bean is loaded based on property values in application.yml, detailing its attributes (name, havingValue, prefix, value, matchIfMissing), practical usage examples.

ConditionalOnPropertyJavaannotations
0 likes · 4 min read
Mastering @ConditionalOnProperty: Controlling Bean Activation in Spring Boot
Senior Xiao Ying
Senior Xiao Ying
Oct 9, 2025 · Backend Development

Dynamic Bean Registration in Spring Boot: Using Extension Points and Conditional Annotations

This guide explains multiple ways to dynamically register beans in Spring Boot—including @ConditionalOnProperty, ImportBeanDefinitionRegistrar, the new Spring 7 BeanRegistrar API, and runtime registration via @PostConstruct—while outlining configuration details, lifecycle considerations, and best‑practice recommendations for flexible, condition‑driven bean management.

BeanRegistrarConditionalOnPropertyDynamic Bean Registration
0 likes · 8 min read
Dynamic Bean Registration in Spring Boot: Using Extension Points and Conditional Annotations
Ubiquitous Tech
Ubiquitous Tech
Sep 1, 2024 · Backend Development

Mastering Advanced Spring Boot Starter Configurations: 4 Essential Techniques

This article walks through four advanced Spring Boot Starter design patterns—Customizer, Enable/ConditionalOnProperty, SPI file migration, and AOP interception—showing concrete code examples, the reasoning behind each approach, and practical tips for learning and applying these techniques.

AOPConditionalOnPropertyCustomizer
0 likes · 16 min read
Mastering Advanced Spring Boot Starter Configurations: 4 Essential Techniques
Shepherd Advanced Notes
Shepherd Advanced Notes
Apr 10, 2023 · Backend Development

Understanding Spring @Conditional and Its Derived Annotations

This article explains how Spring Boot’s @Conditional annotation works, shows how to implement custom Condition classes for language switching, and reviews the suite of derived annotations such as @ConditionalOnBean, @ConditionalOnMissingBean, @ConditionalOnClass, @ConditionalOnMissingClass, and @ConditionalOnProperty with concrete code examples.

@ConditionalConditionalOnBeanConditionalOnProperty
0 likes · 9 min read
Understanding Spring @Conditional and Its Derived Annotations