1@Configuration
2class OkHttpConfig {
3
4 @Bean
5 fun okHttpClient(): OkHttpClient {
6 return OkHttpClient.Builder()
7 .readTimeout(60, TimeUnit.SECONDS)
8 .writeTimeout(60, TimeUnit.SECONDS)
9 .addInterceptor(HttpLoggingInterceptor())
10 .build()
11 }
12}