About 52 results
Open links in new tab
  1. Spring RestTemplate GET with parameters - Stack Overflow

    Since at least Spring 3, instead of using UriComponentsBuilder to build the URL (which is a bit verbose), many of the RestTemplate methods accept placeholders in the path for parameters (not just …

  2. Best practices on rest client using spring RestTemplate

    Nov 20, 2017 · Every example I found, every time doing a REST request it creates new RestTemplate. Normally web applications use singleton spring bean. So I want to know when what is the best …

  3. java - Spring RestTemplate - how to enable full debugging/logging of ...

    Jan 19, 2017 · Learn how to enable full debugging and logging of requests and responses in Spring RestTemplate with practical examples and tips.

  4. spring - WebClient vs RestTemplate - Stack Overflow

    Dec 26, 2017 · No. RestTemplate keeps existing. WebClient is preferrable in these scenarios, i.e. when you want a reactive web client (asynchronous, non-blocking, using Flux/Mono).

  5. java - POST request via RestTemplate in JSON - Stack Overflow

    May 19, 2016 · I didn't find any example how to solve my problem, so I want to ask you for help. I can't simply send POST request using RestTemplate object in JSON Every time I get: …

  6. RestTemplate: How to send URL and query parameters together

    Mar 15, 2016 · RestTemplate: How to send URL and query parameters together Asked 9 years, 10 months ago Modified 3 years, 1 month ago Viewed 279k times

  7. How to POST form data with Spring RestTemplate? - Stack Overflow

    Jan 16, 2017 · ResponseEntity<String> response = restTemplate.postForEntity( url, params, String.class ); I've tried to formulate the correct call in PostMan, and I can get it working correctly by …

  8. java - RestTemplate: exchange () vs postForEntity () vs execute ...

    Sep 17, 2018 · responseEntity = restTemplate.exchange(uri, HttpMethod.POST, httpEntity, ResponseClass.class); I would like to know the usage and differences of these two methods. I also …

  9. RestTemplate: returning a List of Entities - Stack Overflow

    May 26, 2018 · There is a RestFull method that return a List of Menu objects public ResponseEntity<List<Menu>> getMenus () { .. } But I don't know how to get them from the …

  10. Get list of JSON objects with Spring RestTemplate

    Mar 21, 2015 · Second, we are calling RestTemplate.exchange () instead of getForObject (). This is the most generic way to use RestTemplate. It requires us to specify the HTTP method, optional request …