アノテーションインターフェースの使用
org.springframework.web.bind.annotation.ControllerAdvice
ControllerAdvice を使用するパッケージ
パッケージ
説明
リクエストをコントローラーおよびハンドラーメソッドにバインドするためのアノテーションと、リクエストパラメーターをメソッド引数にバインドするためのアノテーション。
Spring MVC の
org.springframework.web.servlet.mvc.method パッケージで使用される、ハンドラーメソッド処理の共通インフラストラクチャ。org.springframework.web.bind.annotation 内の ControllerAdvice 使用
ControllerAdvice 型のアノテーションを持つ org.springframework.web.bind.annotation のクラス修飾子と型クラス説明@interface@ControllerAdviceと@ResponseBodyを組み合わせたショートカットアノテーション。実質的には、例外ハンドラーメソッドがレスポンスボディにレンダリングされる@ControllerAdviceです。org.springframework.web.method 内の ControllerAdvice 使用
型 ControllerAdvice のパラメーターを持つ org.springframework.web.method のコンストラクター修飾子コンストラクター説明ControllerAdviceBean(StringSE beanName, BeanFactory beanFactory, ControllerAdvice controllerAdvice)