spring mvc root url map with tomcat

We typically use


to map the root url. It might not work with tomcat sometimes.

One reason was that that something (Tomcat?) was forwarding from “/” to “/index.jsp” when I had the file index.jsp in my WebContent directory. When I removed that, the request did not get forwarded anymore.

So the important thing here is: Don’t have any files sitting in WebContent that would be considered default pages(index.html, index.jsp, default.html, etc)

From here


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s