2025-03-31 14:59:45 +08:00
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
|
|
|
|
|
|
<groupId>com.zhitan</groupId>
|
|
|
|
|
|
<artifactId>MQTTGateway</artifactId>
|
|
|
|
|
|
<version>1.0</version>
|
|
|
|
|
|
|
|
|
|
|
|
<parent>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-starter-parent</artifactId>
|
|
|
|
|
|
<version>2.6.15</version>
|
|
|
|
|
|
</parent>
|
|
|
|
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
|
|
<maven.compiler.source>8</maven.compiler.source>
|
|
|
|
|
|
<maven.compiler.target>8</maven.compiler.target>
|
|
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
|
|
<integration.version>3.4.3</integration.version>
|
|
|
|
|
|
<druid.version>1.2.20</druid.version>
|
|
|
|
|
|
<mybatis-plus.version>3.5.6</mybatis-plus.version>
|
|
|
|
|
|
<influxdb-client.version>6.6.0</influxdb-client.version>
|
|
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
|
|
|
|
<exclusions>
|
|
|
|
|
|
<exclusion>
|
|
|
|
|
|
<artifactId>spring-boot-starter-tomcat</artifactId>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
</exclusion>
|
|
|
|
|
|
</exclusions>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-starter-undertow</artifactId>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-devtools</artifactId>
|
|
|
|
|
|
<optional>true</optional>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.integration</groupId>
|
|
|
|
|
|
<artifactId>spring-integration-mqtt</artifactId>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<!-- 阿里数据库连接池 -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.alibaba</groupId>
|
|
|
|
|
|
<artifactId>druid-spring-boot-starter</artifactId>
|
|
|
|
|
|
<version>${druid.version}</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.postgresql</groupId>
|
|
|
|
|
|
<artifactId>postgresql</artifactId>
|
|
|
|
|
|
<scope>runtime</scope>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-starter-data-redis</artifactId>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.baomidou</groupId>
|
|
|
|
|
|
<artifactId>mybatis-plus-boot-starter</artifactId>
|
|
|
|
|
|
<version>${mybatis-plus.version}</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.influxdb</groupId>
|
|
|
|
|
|
<artifactId>influxdb-client-java</artifactId>
|
|
|
|
|
|
<version>${influxdb-client.version}</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.jetbrains.kotlin</groupId>
|
|
|
|
|
|
<artifactId>kotlin-stdlib</artifactId>
|
|
|
|
|
|
<version>1.8.20</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.projectlombok</groupId>
|
|
|
|
|
|
<artifactId>lombok</artifactId>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>junit</groupId>
|
|
|
|
|
|
<artifactId>junit</artifactId>
|
|
|
|
|
|
<scope>test</scope>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.jetbrains</groupId>
|
|
|
|
|
|
<artifactId>annotations</artifactId>
|
|
|
|
|
|
<version>26.0.2</version>
|
|
|
|
|
|
<scope>compile</scope>
|
|
|
|
|
|
</dependency>
|
2026-01-13 13:54:10 +08:00
|
|
|
|
|
|
|
|
|
|
<!-- FastJSON2 核心依赖 -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.alibaba.fastjson2</groupId>
|
|
|
|
|
|
<artifactId>fastjson2</artifactId>
|
|
|
|
|
|
<version>2.0.54</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- JWT 核心API -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>io.jsonwebtoken</groupId>
|
|
|
|
|
|
<artifactId>jjwt-api</artifactId>
|
|
|
|
|
|
<version>0.11.5</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- JWT 实现(运行时依赖) -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>io.jsonwebtoken</groupId>
|
|
|
|
|
|
<artifactId>jjwt-impl</artifactId>
|
|
|
|
|
|
<version>0.11.5</version>
|
|
|
|
|
|
<scope>runtime</scope>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 加密算法 + JSON 序列化支持 -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>io.jsonwebtoken</groupId>
|
|
|
|
|
|
<artifactId>jjwt-jackson</artifactId>
|
|
|
|
|
|
<version>0.11.5</version>
|
|
|
|
|
|
<scope>runtime</scope>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Apache Commons Lang3(包含StringUtils核心工具类) -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
|
|
|
<artifactId>commons-lang3</artifactId>
|
|
|
|
|
|
<version>3.14.0</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
|
|
|
|
<scope>test</scope>
|
|
|
|
|
|
<!-- 排除 JUnit 4 引擎(Spring Boot 2.4+ 建议用 JUnit 5) -->
|
|
|
|
|
|
<exclusions>
|
|
|
|
|
|
<exclusion>
|
|
|
|
|
|
<groupId>org.junit.vintage</groupId>
|
|
|
|
|
|
<artifactId>junit-vintage-engine</artifactId>
|
|
|
|
|
|
</exclusion>
|
|
|
|
|
|
</exclusions>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.junit.jupiter</groupId>
|
|
|
|
|
|
<artifactId>junit-jupiter</artifactId>
|
|
|
|
|
|
</dependency>
|
2025-03-31 14:59:45 +08:00
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
|
|
|
|
<repositories>
|
|
|
|
|
|
<repository>
|
|
|
|
|
|
<id>central</id>
|
|
|
|
|
|
<url>https://maven.aliyun.com/repository/central</url>
|
|
|
|
|
|
<releases>
|
|
|
|
|
|
<enabled>true</enabled>
|
|
|
|
|
|
</releases>
|
|
|
|
|
|
<snapshots>
|
|
|
|
|
|
<enabled>true</enabled>
|
|
|
|
|
|
</snapshots>
|
|
|
|
|
|
</repository>
|
|
|
|
|
|
<repository>
|
|
|
|
|
|
<id>ali-public</id>
|
|
|
|
|
|
<name>ali-public</name>
|
|
|
|
|
|
<url>https://maven.aliyun.com/repository/public</url>
|
|
|
|
|
|
<releases>
|
|
|
|
|
|
<enabled>true</enabled>
|
|
|
|
|
|
</releases>
|
|
|
|
|
|
<snapshots>
|
|
|
|
|
|
<enabled>true</enabled>
|
|
|
|
|
|
</snapshots>
|
|
|
|
|
|
</repository>
|
|
|
|
|
|
</repositories>
|
|
|
|
|
|
|
|
|
|
|
|
<build>
|
|
|
|
|
|
<plugins>
|
|
|
|
|
|
<plugin>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
|
|
<version>2.5.15</version>
|
|
|
|
|
|
<configuration>
|
|
|
|
|
|
<fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
|
|
|
|
|
|
</configuration>
|
|
|
|
|
|
<executions>
|
|
|
|
|
|
<execution>
|
|
|
|
|
|
<goals>
|
|
|
|
|
|
<goal>repackage</goal>
|
|
|
|
|
|
</goals>
|
|
|
|
|
|
</execution>
|
|
|
|
|
|
</executions>
|
|
|
|
|
|
</plugin>
|
|
|
|
|
|
</plugins>
|
|
|
|
|
|
<finalName>${project.artifactId}</finalName>
|
|
|
|
|
|
</build>
|
|
|
|
|
|
|
|
|
|
|
|
</project>
|