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
Post a Comment