-
@ControllerAdviceJAVA 2021. 8. 22. 14:00
@ControllerAdivceとは?
@Controller @RestControllerにて発生した例外を一箇所で管理ができるようにするAnnotation
ログインするユーザに対し認証をする関数
Exceptionクラス
@ControllerAdivce annotationを付けたクラスは発生するExceptionをcatchをして処理を進みます。
テスト
'JAVA' 카테고리의 다른 글
Field jwtUtil in '######' required a bean of type '#####' that could not be found. (0) 2021.08.29 JPA (0) 2021.08.22 java.lang.IllegalStateException: Found multiple @SpringBootConfiguration annotated classes エラー (0) 2021.08.15 PasswordEncoder (0) 2021.08.01 IOC (0) 2021.07.22