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

iphone - Using nested NSDictionary with Picker -

javascript - Iterate over array and calculate average values of array-parts -

php - accessing mysql using different server to which db connection data is located -