posted 10 years ago
I think ApplicationContext should only create once and then use it to getBean, again, I see many example in Web which create applicationcontext in the main method
But for my case, it is packed as a jar and no main method, it is just called by a webapp and not a standalone application, then where should I create ApplicationContext for this jar?
I think it is not good to create applicationcontext each time I need getBean, right?