spring - how will container start ApplicationContext.xml file -


i have application implemented in struts. trying move spring doing step step. first plan implement ioc (di). got daos fixed, got applicationcontext.xml fixed when try run application (ofcourse) not create beans me through applicationcontext.xml(sometimes known beans.xml) automatically. in understanding need applicationcontext.xml initialized before service classes call method of daos. proper flow of spring's ioc or how container start applicationcontext.xml file.

did add needed tags web.xml?

<context-param>   <param-name>contextconfiglocation</param-name>   <param-value>web-inf/applicationcontext.xml</param-value> </context-param>  <listener>  <listener-class>org.springframework.web.context.contextloaderlistener</listener-class> </listener> 

Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -