diff --git a/src/backend/gateway-server/src/main/java/com/lalala/gateway/config/FeignResponseDecoderConfig.java b/src/backend/gateway-server/src/main/java/com/lalala/gateway/config/FeignResponseDecoderConfig.java index 35c7ec88..a8e2e426 100644 --- a/src/backend/gateway-server/src/main/java/com/lalala/gateway/config/FeignResponseDecoderConfig.java +++ b/src/backend/gateway-server/src/main/java/com/lalala/gateway/config/FeignResponseDecoderConfig.java @@ -1,6 +1,5 @@ package com.lalala.gateway.config; -import feign.form.spring.SpringFormEncoder; import org.springframework.beans.factory.ObjectFactory; import org.springframework.boot.autoconfigure.http.HttpMessageConverters; import org.springframework.cloud.openfeign.support.SpringDecoder; @@ -8,6 +7,8 @@ import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; +import feign.form.spring.SpringFormEncoder; + @Configuration public class FeignResponseDecoderConfig { private ObjectFactory messageConverters = HttpMessageConverters::new; diff --git a/src/backend/gateway-server/src/main/java/com/lalala/gateway/external/feign/FeignAuthClient.java b/src/backend/gateway-server/src/main/java/com/lalala/gateway/external/feign/FeignAuthClient.java index 17886974..b70eb148 100644 --- a/src/backend/gateway-server/src/main/java/com/lalala/gateway/external/feign/FeignAuthClient.java +++ b/src/backend/gateway-server/src/main/java/com/lalala/gateway/external/feign/FeignAuthClient.java @@ -10,7 +10,5 @@ public interface FeignAuthClient { @PostMapping("/v1/api/passport") - BaseResponse generatePassport( - @RequestHeader("Authorization") String jwtPayload - ); + BaseResponse generatePassport(@RequestHeader("Authorization") String jwtPayload); } diff --git a/src/backend/gateway-server/src/main/java/com/lalala/gateway/filter/AuthorizationFilter.java b/src/backend/gateway-server/src/main/java/com/lalala/gateway/filter/AuthorizationFilter.java index c6e328b9..463df1c7 100644 --- a/src/backend/gateway-server/src/main/java/com/lalala/gateway/filter/AuthorizationFilter.java +++ b/src/backend/gateway-server/src/main/java/com/lalala/gateway/filter/AuthorizationFilter.java @@ -35,8 +35,7 @@ public GatewayFilter apply(Config config) { } if (isRequestContainsAuthorization(exchange)) { - BaseResponse response = - feignAuthClient.generatePassport(extractJWT(exchange)); + BaseResponse response = feignAuthClient.generatePassport(extractJWT(exchange)); String passport = response.getData(); ServerHttpRequest request =