Use a dedicated hook point to customize InfluxDB's HTTP client

This commit introduces a dedicated hook point for InfluxDB's http client
builder and retains backward compatibility, in a deprecated fashion, for
looking up a OkHttpClient.Builder bean.

Closes gh-14709
This commit is contained in:
Stephane Nicoll
2018-10-09 13:33:14 +02:00
parent 20e57de73f
commit a22d089cdc
4 changed files with 110 additions and 18 deletions

View File

@@ -4829,7 +4829,7 @@ If the connection to InfluxDB requires a user and password, you can set the
`spring.influx.user` and `spring.influx.password` properties accordingly.
InfluxDB relies on OkHttp. If you need to tune the http client `InfluxDB` uses behind the
scenes, you can register an `OkHttpClient.Builder` bean.
scenes, you can register an `InfluxDbOkHttpClientBuilderProvider` bean.