S

Shyam Dubey • 3.70K Points
Extraordinary

Q. What is the purpose of @ConditionalOnProperty?

  • (A) To enable caching based on a property
  • (B) To load a bean only if a specific property is present
  • (C) To disable auto-configuration
  • (D) To define custom endpoints
  • Correct Answer - Option(B)
  • Views: 6
  • Filed under category Springboot
  • Hashtags:

Explanation by: Shyam Dubey
@ConditionalOnProperty is used to load beans conditionally based on property values.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.