S

Shyam Dubey • 3.70K Points
Extraordinary

Q. What does the @Component annotation do?

  • (A) Marks a class as a Spring Boot application
  • (B) Creates a bean for database access
  • (C) Marks a class as a Spring-managed component
  • (D) Loads application.properties
  • Correct Answer - Option(C)
  • Views: 16
  • Filed under category Springboot
  • Hashtags:

Explanation by: Shyam Dubey
@Component is a generic stereotype for Spring-managed components.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.