From 4330b11778e8297f36f6e937af6cc54a0da145ad Mon Sep 17 00:00:00 2001 From: chilaka Date: Thu, 9 Jul 2026 11:56:48 -0400 Subject: [PATCH] Changes made on validationExption --- .../exception/JwtValidationException.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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(); +// } +//}