类的使用
org.springframework.web.bind.annotation.ExceptionHandler
使用ExceptionHandler的程序包 程序包 说明 org.springframework.web.servlet.mvc.method.annotation MVC infrastructure for annotation-based handler method processing, building on theorg.springframework.web.method.annotation
package.org.springframework.web.servlet.mvc.method.annotation中ExceptionHandler的使用
注释类型为ExceptionHandler的org.springframework.web.servlet.mvc.method.annotation中的方法 修饰符和类型 方法 说明 ResponseEntity<Object>
ResponseEntityExceptionHandler. handleException(Exception ex, WebRequest request)
Provides handling for standard Spring MVC exceptions.