S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which annotation is used to scan specified packages for Spring components?

  • (A) @Scan
  • (B) @EnableScan
  • (C) @ComponentScan
  • (D) @PackageScan
  • Correct Answer - Option(C)
  • Views: 13
  • Filed under category Springboot
  • Hashtags:

Explanation by: Shyam Dubey
@ComponentScan tells Spring where to search for annotated components.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.