Springs RestTemplate default connection pool

前端 未结 4 1769
轮回少年
轮回少年 2020-12-24 13:12

Just wondering if RestTemplate out of the box uses connection pooling or does it simply establish a new connection each time ?

4条回答
  •  再見小時候
    2020-12-24 13:39

    We can use okhttpclient underneath spring's rest template to use connection pooling. A detailed blog on this below

    https://www.bytesville.com/changing-httpclient-in-spring-resttemplate/

提交回复
热议问题