I’m getting the error: Exception: org.springframework.web.client.HttpClientErrorException$Unauthorized: 401, when trying to connect to Jira through HttpHeader, and the credentials are configured in a configserver file, which would be this: And the method where I command to call the file above and where I get the error on the line ResponseEntity<String> result = restTemplate.exchange(url, HttpMethod.GET,this.requestEnt, String.class);, would be this: In fact, when
Tag: httphandler
Java HttpHandler waiting for CompletableFuture
I got the following code The idea is that I make a call to another client for some information, wait for his response, and then present the data that has been received and processed. But i am looking for a way to avoid the need for Thread.sleep to avoid possible issues with other code in the system. Is there another