File tree 1 file changed +2
-1
lines changed
be/src/main/java/yeonba/be/exception
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 7
7
import org .springframework .http .HttpHeaders ;
8
8
import org .springframework .http .HttpStatusCode ;
9
9
import org .springframework .http .ResponseEntity ;
10
+ import org .springframework .stereotype .Controller ;
10
11
import org .springframework .web .bind .MethodArgumentNotValidException ;
11
12
import org .springframework .web .bind .annotation .ExceptionHandler ;
12
13
import org .springframework .web .bind .annotation .RestController ;
16
17
import org .springframework .web .servlet .mvc .method .annotation .ResponseEntityExceptionHandler ;
17
18
import yeonba .be .util .CustomResponse ;
18
19
19
- @ RestControllerAdvice (annotations = {RestController .class })
20
+ @ RestControllerAdvice (annotations = {RestController .class , Controller . class })
20
21
public class ExceptionAdvice extends ResponseEntityExceptionHandler {
21
22
22
23
@ ExceptionHandler (value = GeneralException .class )
You can’t perform that action at this time.
0 commit comments