I have a project that has... I dunno... 200-300 daos/services/controllers and I use @Autowired
to wire everything together rather than specify everything in the
Practically the same. Component scanning is a bit more expensive (when you scan for @Service
, @Component
), but, as you said, it is startup-time - it happens only once. And on a moderate machine it starts pretty quickly even with annotations.
Generally, I wouldn't abandon the approach just because it adds a bit of startup time. And I can assure you it is nothing significant (working on a bigger project than your right now)