In Spring Boot, the _____ annotation is used to conditionally enable a configuration based on the presence of a specific property.

  • @ComponentScan
  • @ConditionalOnProperty
  • @ConfigurationProperties
  • @EnableAutoConfiguration
In Spring Boot, the "@ConditionalOnProperty" annotation is used to conditionally enable a configuration based on the presence of a specific property. This annotation allows you to configure components or beans based on the values of properties, making it a powerful tool for conditional configuration in your application.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *