728x90
RestTemplate restTemplate = new RestTemplate();
HttpHeaders httpHeaders = new HttpHeaders();
httpHeaders.set("myheader",token);
HttpEntity<String> request = new HttpEntity<>(payload, httpHeaders);
ResponseEntity<String> response = restTemplate.postForEntity(dppURI + "/api/pay/full", request, String.class);
return response;
728x90
'백엔드 > Spring(Boot)' 카테고리의 다른 글
SpringBoot Eureka 서버 설정 (0) | 2022.03.25 |
---|---|
스프링 시큐리티 OAuth 2.0 (0) | 2022.03.17 |
Spring Swagger에서 Pageable 사용 (0) | 2022.03.07 |
Spring Data Jpa repository 통합 (0) | 2022.02.23 |
InitDB 하는 법 (0) | 2022.02.22 |