recently we moved to spring 3.0 Controller handling like this:
@Controller
public class MyController {
@RequestMapping(method = RequestMethod.POST)
pro
Just add HEAD
as a supported method the the request mapping:
@RequestMapping(method = {RequestMethod.GET, RequestMethod.HEAD})
Update: I think you can provide a custom class that extends AnnotationMethodHandlerAdapter
to be the method handler (in dispatcher-servlet.xml
), and just bypass the HEAD support check there. But I'd just use the replace features of an IDE to add it.