There doesn't seem to be a way to configure that. There are other handler mapping strategies you can use besides the DefaultAnnotationHandlerMapping. For example the ControllerClassNameHandlerMapping. It works in combination with method-relative @RequestMapping annotations.
For example:
/pet/show -> PetController.show()
where
Code:
@Controller
public class PetController {
@RequestMapping
public void show() {
...
}
}
This has the advantage of making it easy to find the controller method given a URL, something that's much harder to guess with an all annotations approach.