I have a spring application which runs on Tomcat server. Now my requirement is that all the requests should redirect to app-servlet.xml.
I have configured it as follows:
<servlet> <servlet-name>app</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param><param-name>listings</param-name>
<param-value>false</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>app</servlet-name>
<url-pattern>/</url-pattern> </servlet-mapping>
The application is getting started, but the pages are not properly loaded. Could anyone please help with this?