Skip to content

Commit 1f21a2c

Browse files
committed
feat: bug with handler fixed
1 parent 884e1b0 commit 1f21a2c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

supply-backend/src/main/java/supply/server/service/ExceptionHandlerService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
import lombok.extern.slf4j.Slf4j;
44
import org.springframework.http.HttpStatus;
55
import org.springframework.http.ResponseEntity;
6-
import org.springframework.stereotype.Service;
6+
import org.springframework.web.bind.annotation.ControllerAdvice;
77
import org.springframework.web.bind.annotation.ExceptionHandler;
88
import supply.server.configuration.exception.*;
99

1010
@Slf4j
11-
@Service
11+
@ControllerAdvice
1212
public class ExceptionHandlerService {
1313

1414
@ExceptionHandler({RedisLockException.class, DbException.class})

0 commit comments

Comments
 (0)