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 applicationContext.xml
.
My question is, how much of a performance impact does this have on my startup times? Would it be worth it to remove all of the @Autowired
annotations and actually wire this application up manually via the applicationContext.xml
?
From an architectural point of view, I like @Autowired
. I don't want to add another layer of complexity by using the xml file - it adds no value as far as I am concerned. But if this sort of thing is adding 10 seconds to my container's load time, I may consider it. If the cost is 100 milliseconds, then I'll leave it as it is.
Thanks