已经搭建好springboot+mysql,此处记录继续集成influxdb

第一步 集成InfluxDB封装的框架

<dependency>
    <groupId>io.github.betacatcode</groupId>
    <artifactId>spring-boot-starter-influxdb</artifactId>
    <version>0.0.5-RELEASE</version>
</dependency>

参考地址:https://gitee.com/ruin97/spring-boot-starter-influxdb/tree/feature-starter

如果报错,如:kotlin错误,okhttp3错的等,引入对应的包或者检查版本问题

<dependency>
   		<groupId>org.jetbrains.kotlin</groupId>
   		<artifactId>kotlin-stdlib</artifactId>
   		<version>1.5.20</version>
   	</dependency>
   	<dependency>
   		<groupId>com.squareup.okhttp3</groupId>
   		<artifactId>okhttp</artifactId>
   		<version>4.10.0</version>
   	</dependency>
Logo

尧米是由西云算力与CSDN联合运营的AI算力和模型开源社区品牌,为基于DaModel智算平台的AI应用企业和泛AI开发者提供技术交流与成果转化平台。

更多推荐