Home > Tag Archives: okhttp3

Tag Archives: okhttp3

Configure Spring RestTemplate with OkHttp3 in Spring Boot Application


Okhttp3 is a popular HTTP client implementation for Java and we can easily embed it in our Spring Boot RestTemplate abstraction. Below is the Bean definition which binds the instance of Okhttp3 client with RestTemplate. Now to integrate in our implementation class we just need to autowire the Resttemplate to use this customized Okhttp3 based resttemplate. How to use RestTemplate ... Read More »