ResponseEntityExceptionHandler is not getting called when exception occurs
问题 I am new to spring. I am developing a REST api with spring webmvc. For Error Handling I got this link http://docs.spring.io/spring/docs/3.2.x/spring-framework-reference/html/mvc.html#mvc-ann-rest-spring-mvc-exceptions I have tried to use ResponseEntityExceptionHandler in my project . but whenever my controller throws exception it never reaches to this ResponseEntityExceptionHandler. Following are my code snippet Controller @Controller @RequestMapping("/hello") public class HelloController {