okhttpconfig
@Configuration
class OkHttpConfig {
@Bean
fun okHttpClient(): OkHttpClient {
return OkHttpClient.Builder()
.readTimeout(60, TimeUnit.SECONDS)
.writeTimeout(60, TimeUnit.SECONDS)
.addInterceptor(HttpLoggingInterceptor())
.build()
}
}
Bad Beaver