About 349,000 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. Disabling SSL Certificate Validation in Spring RestTemplate

    RestTemplate restTemplate = new RestTemplate(httpComponentsHttpClientFactory); return restTemplate; } If sslTrustStrategy = true, trust all certificates due to (cert, authType) -> …

  3. How to Create or configure Rest Template using @Bean in Spring Boot

    Jul 22, 2016 · I want to define RestTemplate as an application bean using @Bean annotation in my configuration class in a spring boot application. I am calling 4 rest services in different places in my …

  4. Is RestTemplate going to be deprecated in coming Spring release ...

    Sep 2, 2023 · 2 If you create a new service and have a choice between RestTemplate and WebClient - I'd go with WebClient. According to the RestTemplate doc: As of 5.0 this class is in maintenance …

  5. 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 …

  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, 8 months ago Modified 2 years, 11 months ago Viewed 279k times

  7. 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).

  8. rest - Spring RestTemplate timeout - Stack Overflow

    Dec 12, 2012 · I would like to set the connection timeouts for a rest service used by my web application. I'm using Spring's RestTemplate to talk to my service. I've done some research and I've found and …

  9. 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: …

  10. rest - Spring RestTemplate exception handling - Stack Overflow

    Jun 29, 2016 · 4 If you use pooling (http client factory) or load balancing (eureka) mechanism with your RestTemplate, you will not have the luxury of creating a new RestTemplate per class. If you are …