File tree 2 files changed +3
-2
lines changed
src/main/java/muit/backend/apiPayLoad/exception
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ dependencies {
39
39
implementation ' org.springframework.boot:spring-boot-starter-validation'
40
40
41
41
// swaggerDoc
42
- implementation ' org.springdoc:springdoc-openapi-starter-webmvc-ui:2.0.2 '
42
+ implementation ' org.springdoc:springdoc-openapi-starter-webmvc-ui:2.7.0 '
43
43
44
44
// s3
45
45
implementation ' org.springframework.cloud:spring-cloud-starter-aws:2.2.6.RELEASE'
Original file line number Diff line number Diff line change 7
7
import jakarta .servlet .http .HttpServletRequest ;
8
8
import lombok .extern .slf4j .Slf4j ;
9
9
import jakarta .validation .ConstraintViolationException ;
10
+ import muit .backend .service .CommentService ;
10
11
import org .springframework .http .HttpHeaders ;
11
12
import org .springframework .http .HttpStatus ;
12
13
import org .springframework .http .HttpStatusCode ;
24
25
import java .util .Optional ;
25
26
26
27
@ Slf4j
27
- // @RestControllerAdvice(annotations = {RestController.class})
28
+ @ RestControllerAdvice (annotations = {RestController . class }, basePackageClasses = { CommentService .class })
28
29
public class ExceptionAdvice extends ResponseEntityExceptionHandler {
29
30
30
31
//유효성 검사에서 제약 조건이 위반되었을 때 발생하는 예외
You can’t perform that action at this time.
0 commit comments