@AutoConfiguration(before=OkHttp3AutoConfiguration.class) @ConditionalOnClass(value=okhttp3.logging.HttpLoggingInterceptor.class) @EnableConfigurationProperties(value=OkHttp3LoggingInterceptorProperties.class) public class OkHttp3LoggingInterceptorAutoConfiguration extends Object
Constructor and Description |
---|
OkHttp3LoggingInterceptorAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
okhttp3.logging.HttpLoggingInterceptor |
okHttp3LoggingInterceptor(OkHttp3LoggingInterceptorProperties properties,
ObjectProvider<okhttp3.logging.HttpLoggingInterceptor.Logger> logger) |
public OkHttp3LoggingInterceptorAutoConfiguration()
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(value="okhttp.logging.enabled", havingValue="true", matchIfMissing=true) public okhttp3.logging.HttpLoggingInterceptor okHttp3LoggingInterceptor(OkHttp3LoggingInterceptorProperties properties, ObjectProvider<okhttp3.logging.HttpLoggingInterceptor.Logger> logger)