There is at the moment no easy way to modify RequestMappingHandlerMapping's setters. Namely, I had to set setUseSuffixPatternMatch(false). <mvc:annotation-driven> does not allow to change this bean. There is a Java equivalent
Which does not really work if you mix XML and Java config because this class is called when all URL handlers have been already registered.
I have found issue
SPR-9371 which solves the problem but is somewhat tedious in implementation.
Can we have <mvc:annotation-driven> extended in such a way that exactly such such can be done in XML?
If this does not require any extension please add a doc chapter which shows how to do this with XML. There are only examples in Java whether it's the Spring Docs or Stackoverflow.
Something like this should work too:
Which actually doesn't!
Another reference: http://forum.springsource.org/showthread.php?120192