I use filenames in my REST API (example: GET http://xxx/api/myImage.jpg) problem is @PathVariable dropped \".jpg\". this problems already asked few times in here and answer
The mvc:annotationDriven tag essentially sets you your Spring context to allow for dispatching requests to Controllers.
The tag will configure two beans DefaultAnnotationHandlerMapping and AnnotationMethodHandlerAdapter.
You can find more information from the spring documents:
http://static.springsource.org/spring/docs/current/spring-framework-reference/html/mvc.html