小编sam*_*sam的帖子

使用Spring Rest Template时,HttpConnection的默认保持活动时间

我想知道在通过Spring rest Template创建新连接之前,HttpConnection在不活动时保持活动多长时间.我查看了默认的连接超时和读取超时参数,但我相信这些是在由于某些故障等原因未建立连接时在连接超时的上下文中使用的.

我正在寻找的是,如果没有活动(或)没有活动,连接保持多长时间,以及如何通过Spring Rest Template(或)底层机制来配置它.

java spring httpurlconnection resttemplate

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

httpurlconnection ×1

java ×1

resttemplate ×1

spring ×1