S

Shyam Dubey • 3.70K Points
Extraordinary

Q. What does the @Profile annotation do?

  • (A) Defines an aspect
  • (B) Defines beans for specific environments
  • (C) Enables REST API logging
  • (D) Restricts method access
  • Correct Answer - Option(B)
  • Views: 20
  • Filed under category Springboot
  • Hashtags:

Explanation by: Shyam Dubey
@Profile is used to conditionally load beans based on the active environment profile.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.