I was wondering if there is a final solution (decision) on how we should add the HEAD request default behavior to a controller.

@RequestMapping(value={"/"}, method={RequestMethod.GET,RequestMethod.HEAD}) will send the same response for HEAD and GET request. The HEAD response body will not be empty, which is not ideal.

For the moment I'm using another function for the HEAD request and I'm sending an empty body. It is working but I was wondering if there is a better way to do this.

Older Threads on the same subject:
http://forum.springsource.org/showth...-not-supported
http://forum.springsource.org/showth...oid-this-error