user1016403 user1016403 - 1 year ago 148
Java Question

Adding ContextLoaderListener to web.xml in Spring MVC

I am new to Spring MVC. I have a web application. I have the following configuration:


Do I need to add the following line to the web.xml file?


Answer Source

Yes you need to add ContextLoaderListener in web.xml, only if you want to load other Spring context xml files as well while loading the app and you can specify them as

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download