model view controller - Spring: link between WebApplicationContext and ApplicationContext? -
i working on spring application. started creating small java app using spring. later, became necessary add web interface. decided use spring mvc. confused. in web.xml have
<context-param> <param-name>contextconfiglocation</param-name> <param-value> /web-inf/mvc-dispatcher-servlet.xml, /web-inf/applicationcontext.xml </param-value> </context-param>
where mvc-dispacher-servlet.xml contains beans necessary web logic while applicationcontext.xml contains beans performing specific operations. question is: beans in these files going aware of each other? going 1 big container includes beans both config files? or these containers separate?
yes in 1 context loaded web application context. same when using application context , passing in multiple files it.
Comments
Post a Comment