How do I get a Spring 3.0 controller to trigger a 404?
I have a controller with @RequestMapping(value = \"/**\", method = RequestMethod.GET) and for som
@RequestMapping(value = \"/**\", method = RequestMethod.GET)
This is a bit late, but if you are using Spring Data REST then there is already org.springframework.data.rest.webmvc.ResourceNotFoundException It also uses @ResponseStatus annotation. There is no need to create a custom runtime exception anymore.
org.springframework.data.rest.webmvc.ResourceNotFoundException
@ResponseStatus