diff --git a/api-gateway/src/main/java/com/pm/apigateway/exception/JwtValidationException.java b/api-gateway/src/main/java/com/pm/apigateway/exception/JwtValidationException.java index 8dd1317..26a9e61 100644 --- a/api-gateway/src/main/java/com/pm/apigateway/exception/JwtValidationException.java +++ b/api-gateway/src/main/java/com/pm/apigateway/exception/JwtValidationException.java @@ -7,11 +7,11 @@ import org.springframework.web.server.ServerWebExchange; import reactor.core.publisher.Mono; -@RestControllerAdvice -public class JwtValidationException { - @ExceptionHandler(WebClientResponseException.Unauthorized.class) - public Mono handleUnauthorizedException(ServerWebExchange exchange){ - exchange.getResponse().setStatusCode(HttpStatus.UNAUTHORIZED); - return exchange.getResponse().setComplete(); - } -} +//@RestControllerAdvice +//public class JwtValidationException { +// @ExceptionHandler(WebClientResponseException.Unauthorized.class) +// public Mono handleUnauthorizedException(ServerWebExchange exchange){ +//// exchange.getResponse().setStatusCode(HttpStatus.UNAUTHORIZED); +//// return exchange.getResponse().setComplete(); +// } +//}