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

actionscript 3 - TweenLite does not work with object -

php - How can I edit my code to echo the data of child's element where my search term was found in, in XMLReader? -

c# - Global Variables vs. ASP.NET Session State -