S

Satya • 3.38K Points
Extraordinary

Q. What does @ComponentScan do?

  • (A) Scans database tables
  • (B) Scans packages for Spring components
  • (C) Scans HTTP requests
  • (D) Scans HTML files
  • Correct Answer - Option(B)
  • Views: 1
  • Filed under category Springboot
  • Hashtags:

Explanation by: Satya
@ComponentScan tells Spring where to search for annotated components like @Controller, @Service, and @Repository.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.