Are you matching URLs correctly to catch both edit.htm and edit ? Try it (assuming CMT is your contextPath):
@RequestMapping(value = "/content/edit*")
To work with resources, you need to specify <mvc:resources .../> in the spring configuration. See Spring doco here .
EDIT: spring provides a DefaultAnnotationHandlerMapping bean that usually catches possible extensions like .html, .xml, etc. The application I'm working on has disconnected through:
<bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping"> <property name="useDefaultSuffixPattern" value="false"/> </bean>
Therefore, you do not need to worry about the extension usually.
source share