Skip to content

This repository provides a practical example of how to implement Conditional Bean Registration in Spring Boot. Using the @ConditionalOnProperty annotation, we can enable or disable components dynamically based on configuration files or environment variables.

Notifications You must be signed in to change notification settings

eduesqui/conditionalproperty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@ConditionalOnProperty Example

GitHub last commit GitHub repo size GitHub followers Twitter Follow

This repository provides a practical example of how to implement Conditional Bean Registration in Spring Boot. Using the @ConditionalOnProperty annotation, we can enable or disable components dynamically based on configuration files or environment variables.

Requirements

  • Java: The minimum required version is 17.
  • Spring Starter Parent: This project uses version 3.2.1.

Getting Started

Server should run automatically when starting a workspace. To run manually, run:

mvn spring-boot:run

About

This repository provides a practical example of how to implement Conditional Bean Registration in Spring Boot. Using the @ConditionalOnProperty annotation, we can enable or disable components dynamically based on configuration files or environment variables.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published