Issue
Does Spring MVC support extension-less URLs like asp.net MVC does?
I am just getting started with Spring MVC.
Or maybe has nothing to do with Spring MVC but Tomcat?
Solution
href="http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/mvc.html#mvc-ann-requestmapping" rel="noreferrer">Yes, it does.
If you are using annotations, you annotate your controller methods or classes with something like:
@RequestMapping("/hello")
Which will respond to /hello
when you map the dispatcher servlet like so:
<servlet-mapping>
<servlet-name>dispatcher</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
Answered By - Jeremy
Answer Checked By - Robin (JavaFixing Admin)