I\'d like to intercept the OPTIONS request with my controller using Spring MVC, but it is catched by the DispatcherServlet. How can I manage that?
@RequestMapping(value="/youroptions", method=RequestMethod.OPTIONS) public View getOptions() { }
You should configure the dispatcherServlet by setting its dispatchOptionsRequest to true
dispatchOptionsRequest
true