apigateway2 io.jsonwebtoken.SignatureException: JWT signature does not match locally computed signature. JWT validity cannot be asserted and should not be trusted. 에러 해결 마이크로서비스(user-service)와 apigateway 서비스를 사용하던중에 RestTemplate 을 적용하고 api 요청을 테스트하는데 user-service를 apigateway 서비스에 등록한데로 get방식이 요청안됐다. apigateway-service의 application.yml에 get방식은 AuthorizationHeaderFilter를 거치도록 등록해놨다. spring: application: name: apigateway-service rabbitmq: host: 127.0.0.1 port: 5672 username: guest password: guest cloud: gateway: default-filters: - name: GlobalFilter # GlobalFilter .. 2022. 8. 30. API Gateway Service 사용(Spring Cloud Gateway + Eureka) Spring Cloud Gateway와 Eureka를 이용해서 API Gateway Service를 실행해보자 그렇기 위해선 FirstService와 SecondService, apigateway-service를 discovery service(Eureka)에 등록해야한다. 클라이언트가 " http://localhost:8080/first-service/welcome "로 요청을 보내면 API Gateway가 먼저 받는다. 이제 API Gateway는 " /first-service/** " 이하는 어떤 uri로 가야하는지 discovery service에게 물어보고 discovery service가 어떤 IP 주소와 포트로 가야하는지 알려주면 API Gateway는 해당 주소로 요청을 보내게 된다. 우선.. 2022. 8. 17. 이전 1 다음