By default, the Spring MVC configuration files must be directly in the WEB-INF directory and have a ****** – servlet.xml name. If you wanted to change the name or location of this file you need to follow these steps:

Move file:

Previously, my second-servlet.xml file was directly in the WEB-INF directory. Make a change to the web.xml file by adding the “init-param” section for the Servlet Dispatcher for that module/application:

And verify if it works :)

SHARE
Previous articleValidation of forms
Next articleRequest parameters