2021
02-26
02-26
SpringBoot 配置 okhttp3的操作
1.Maven添加依赖<dependency><groupId>com.squareup.okhttp3</groupId><artifactId>okhttp</artifactId><version>3.10.0</version></dependency>2.application.properties配置文件ok.http.connect-timeout=30ok.http.read-timeout=30ok.http.write-timeout=30#连接池中整体的空闲连接的最大数量ok.http.max-idle-connections=200#连接空闲时间最多为300秒ok.http.keep-alive-duration=3003.OkHttpConfiguration配置类...
继续阅读 >