I need the context to ApplicationContext.xml
,which I provided in web.xml
as
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
But I need a control for this in Controller
class.
I tried many things including
WebApplicationContext ctx = ContextLoader.getCurrentWebApplicationContext();
but it doesnt help.