recently we moved to spring 3.0 Controller handling like this:
@Controller
public class MyController {
@RequestMapping(method = RequestMethod.POST)
pro
In the current Spring (4.3.10) HEAD is automatically supported:
@RequestMapping methods mapped to "GET" are also implicitly mapped to "HEAD", i.e. there is no need to have "HEAD" explicitly declared. An HTTP HEAD request is processed as if it were an HTTP GET except instead of writing the body only the number of bytes are counted and the "Content-Length" header set.
https://docs.spring.io/spring/docs/current/spring-framework-reference/web.html#mvc-ann-requestmapping-head-options