S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which annotation can be used to mark a class as a configuration class?

  • (A) @AppConfig
  • (B) @Configuration
  • (C) @SpringBootApplication
  • (D) @BeanFactory
  • Correct Answer - Option(B)
  • Views: 11
  • Filed under category Springboot
  • Hashtags:

Explanation by: Shyam Dubey
@Configuration marks a class as a source of bean definitions.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.