类的使用
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.method
package.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.method中ControllerAdviceBean的使用
返回变量类型为ControllerAdviceBean的类型的org.springframework.web.method中的方法 修饰符和类型 方法 说明 static List<ControllerAdviceBean>
ControllerAdviceBean. findAnnotatedBeans(ApplicationContext context)
Find beans annotated with@ControllerAdvice
in the givenApplicationContext
and wrap them asControllerAdviceBean
instances.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@ControllerAdvice
beans discovered in the ApplicationContext.