InfluxDBClient loads the influx2.properties file automatically from the project classpath.
All you have to do is to create a new file under the src/main/resources directory:
influx2.url=http://localhost:9999
influx2.org=my-org
influx2.bucket=my-bucket
influx2.token=my-token
influx2.logLevel=BODY
influx2.readTimeout=5s
influx2.writeTimeout=10s
influx2.connectTimeout=5s
InfluxDBClientloads theinflux2.propertiesfile automatically from the project classpath.All you have to do is to create a new file under the
src/main/resourcesdirectory: