首先,您需要在 Java 项目中添加 InfluxDB 的客户端依赖。如果您使用 Maven,您可以在pom.xml文件中加入以下依赖: <dependency><groupId>org.influxdb</groupId><artifactId>influxdb-java</artifactId><version>2.20</version><!-- 请根据需要检查最新版本 --></depe
InfluxDB是一个高性能的时序数据库,常用于存储和查询时间序列数据。在网站访问量统计中,InfluxDB可以有效地记录和分析访问数据。本文将介绍如何在Java中使用InfluxDBClient来统计网站访问量。 环境准备 首先,确保你的开发环境中已经安装了Java和Maven。然后,在你的pom.xml文件中添加InfluxDB Java客户端的依赖: <dependen...
[maven-release-plugin] prepare for next development iteration May 31, 2023 client-utils [maven-release-plugin] prepare for next development iteration May 31, 2023 client chore(deps): Bump build-helper-maven-plugin from 3.3.0 to 3.4.0 (infl… May 31, 2023 examples chore(deps): Bump commons...
[maven-release-plugin] prepare for next development iteration 2年前 client-kotlin chore(deps): Bump org.jetbrains.dokka:dokka-maven-plugin from 1.8.20 t… 2年前 client-legacy [maven-release-plugin] prepare for next development iteration
Maven dependency:<dependency> <groupId>com.influxdb</groupId> <artifactId>influxdb-client-java</artifactId> <version>7.0.0</version> </dependency>Or when using Gradle:dependencies { implementation "com.influxdb:influxdb-client-java:7.0.0" }...
[maven-release-plugin] prepare for next development iteration 5年前 README MIT influxdb-client-java This repository contains the reference JVM clients for the InfluxDB 2.0. Currently, Java, Reactive, Kotlin and Scala clients are implemented. ...
首先,我们需要在项目中引入influxdb-client-java库。在Maven项目中,可以通过以下方式添加依赖: ```xml org.influxdb influxdb-client-java 1.7.4 ``` 接下来,让我们从连接InfluxDB数据库开始。你需要提供InfluxDB数据库的URL、用户名和密码,以及数据库名称。以下是连接InfluxDB数据库的示例代码: ...
$>exportINFLUXDB_IP=127.0.0.1 $>mvn clean install There is a shell script running InfluxDB and Maven from inside a Docker container and you can execute it by running: $>./compile-and-test.sh Manual(main documentation); InfluxDB Object Mapper; Query Builder; FAQ; Changelog....
dependabot/maven/org.junit.jupiter-junit-jupiter-engine-5.10.2 update-moshi dependabot/maven/org.mockito-mockito-core-3.11.0 update-moshi-for-issue-440 0.9.x 0.8.x influxdb-java-2.25 influxdb-java-2.24 influxdb-java-2.23 influxdb-java-2.22 ...
Maven 3.0+ (tested with maven 3.5.0) Docker daemon running The latest InfluxDB 2.x and InfluxDB 1.X docker instances, which can be started using the./scripts/influxdb-restart.shscript Once these are in place you can build influxdb-client-java with all tests with: ...