We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 884e1b0 commit 1f21a2cCopy full SHA for 1f21a2c
1 file changed
supply-backend/src/main/java/supply/server/service/ExceptionHandlerService.java
@@ -3,12 +3,12 @@
3
import lombok.extern.slf4j.Slf4j;
4
import org.springframework.http.HttpStatus;
5
import org.springframework.http.ResponseEntity;
6
-import org.springframework.stereotype.Service;
+import org.springframework.web.bind.annotation.ControllerAdvice;
7
import org.springframework.web.bind.annotation.ExceptionHandler;
8
import supply.server.configuration.exception.*;
9
10
@Slf4j
11
-@Service
+@ControllerAdvice
12
public class ExceptionHandlerService {
13
14
@ExceptionHandler({RedisLockException.class, DbException.class})
0 commit comments