类的使用
org.springframework.web.method.ControllerAdviceBean
使用ControllerAdviceBean的程序包 程序包 说明 org.springframework.web.method Common infrastructure for handler method processing, as used by Spring MVC'sorg.springframework.web.servlet.mvc.methodpackage.org.springframework.web.servlet.mvc.method.annotation MVC infrastructure for annotation-based handler method processing, building on theorg.springframework.web.method.annotationpackage.org.springframework.web.method中ControllerAdviceBean的使用
返回变量类型为ControllerAdviceBean的类型的org.springframework.web.method中的方法 修饰符和类型 方法 说明 static List<ControllerAdviceBean>ControllerAdviceBean. findAnnotatedBeans(ApplicationContext context)Find beans annotated with@ControllerAdvicein the givenApplicationContextand wrap them asControllerAdviceBeaninstances.org.springframework.web.servlet.mvc.method.annotation中ControllerAdviceBean的使用
返回变量类型为ControllerAdviceBean的类型的org.springframework.web.servlet.mvc.method.annotation中的方法 修饰符和类型 方法 说明 Map<ControllerAdviceBean,ExceptionHandlerMethodResolver>ExceptionHandlerExceptionResolver. getExceptionHandlerAdviceCache()Return an unmodifiable Map with the@ControllerAdvicebeans discovered in the ApplicationContext.