Skip to main content
Filter by
Sorted by
Tagged with
Advice
0 votes
0 replies
49 views

Im posting here because cant get a working example of oauth2 client implementation in spring boot 3.5.7 This is my first time ever implementing this type of authentication and cant manage to make it ...
FakiB's user avatar
  • 23
1 vote
0 answers
41 views

Using RestTemplate in Spring Boot to connect to a server, I have this generic class to map responses from the server I'm connecting to: @Data public class ServicesResponseDTO<T> implements ...
user2087103's user avatar
1 vote
2 answers
155 views

I replaced RestTemplate with RestClient and I had some integration tests with the help of MockRestServiceServer from Spring. MockRestServiceServer is not compatible with RestClient. The solution is to ...
Eduardo Barros's user avatar
0 votes
0 answers
87 views

I have the code like this: var fac = new SimpleClientHttpRequestFactory(); fac.setConnectionTimeout(Duration.ofMillis(100)) fac.setReadTimeout(Duration.ofMillis(500)) var restClient = RestClient....
Shirshak55's user avatar
1 vote
0 answers
172 views

I am using Spring's Http Interface to make HTTP requests through RestClient. Initially, I created a RestClient instance without setting a requestFactory, as shown below: @Bean("rest-client-...
khesam109's user avatar
  • 650
3 votes
1 answer
356 views

I wonder how I can idiomatically (by using built-in mechanisms in Spring) go through the next pages that are located Link header. Right now, I need to extract it manually: private fun ...
pixel's user avatar
  • 26.8k
2 votes
0 answers
496 views

I want to use the Spring Boot's RestClient feature for my application. So, I want to migrate the existing Spring Boot's RestTemplate code to Spring Boot's RestClient code. I have a code that works ...
Jorge Rabello's user avatar
0 votes
1 answer
231 views

I'm trying to make a GET call with the (new) Spring RestClient to an AWS S3 predesigned link. Example of such link from AWS documentation: https://examplebucket.s3.us-east-1.amazonaws.com/test.txt ?X-...
Chanandler Bong's user avatar
2 votes
1 answer
877 views

How can I unit test the exchange() method of Spring's new RestClient with code coverage? I have a method which fires an http post request to another third party service: public ResponseEntity<...
Arthur Eirich's user avatar