📅  最后修改于: 2022-03-11 14:52:15.003000             🧑  作者: Mango
@Configuration
class OkHttpConfig {
@Bean
fun okHttpClient(): OkHttpClient {
return OkHttpClient.Builder()
.readTimeout(60, TimeUnit.SECONDS)
.writeTimeout(60, TimeUnit.SECONDS)
.addInterceptor(HttpLoggingInterceptor())
.build()
}
}