Skip to content

Commit

Permalink
style: spotlessApply 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
kor-Chipmunk committed Feb 15, 2024
1 parent 7e34af7 commit c83fc75
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
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;
import org.springframework.cloud.openfeign.support.SpringEncoder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import feign.form.spring.SpringFormEncoder;

@Configuration
public class FeignResponseDecoderConfig {
private ObjectFactory<HttpMessageConverters> messageConverters = HttpMessageConverters::new;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,5 @@
public interface FeignAuthClient {

@PostMapping("/v1/api/passport")
BaseResponse<String> generatePassport(
@RequestHeader("Authorization") String jwtPayload
);
BaseResponse<String> generatePassport(@RequestHeader("Authorization") String jwtPayload);
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ public GatewayFilter apply(Config config) {
}

if (isRequestContainsAuthorization(exchange)) {
BaseResponse<String> response =
feignAuthClient.generatePassport(extractJWT(exchange));
BaseResponse<String> response = feignAuthClient.generatePassport(extractJWT(exchange));
String passport = response.getData();

ServerHttpRequest request =
Expand Down

0 comments on commit c83fc75

Please sign in to comment.