S

Shyam Dubey • 3.70K Points
Extraordinary

Q. What does the @ConditionalOnProperty annotation do?

  • (A) Loads a bean based on the presence of a system property
  • (B) Loads properties conditionally at runtime
  • (C) Loads a configuration class based on the property value
  • (D) Disables a bean if a property is missing
  • Correct Answer - Option(C)
  • Views: 13
  • Filed under category Springboot
  • Hashtags:

Explanation by: Shyam Dubey
@ConditionalOnProperty is used to conditionally load a configuration based on the presence or value of a property.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.