I am new to Spring MVC. I have a web application. I have the following configuration:
Only if you have two config xml files. One with Services / DAOs and another with Controller. If you have configured everything in one spring config file you don't need the ContextLoaderListener
, just the dispatcher servlet is sufficient.
It is recommended to split the config into two and use the ContextLoaderListener
to create the root application context and the dispatcher servlet to create the web layer application context.