0

I have come across two elements in the Spring MVC, context:annotation-config and context:component-scan.
For me, it looks like context:component-scan performs the same job as context:annotation-config and also registers the new beans.I don't see any valid reason or scenario where we have to use context:annotation-config.
Please provide some insights if it gives any additional benefits in specific scenarios for Spring MVC applications.

Saif
  • 6,804
  • 8
  • 40
  • 61
Krishna
  • 7,154
  • 16
  • 68
  • 80

0 Answers0