|
|
@ -1,115 +1,145 @@
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<?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"
|
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
|
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
|
|
|
|
|
|
<groupId>com.example</groupId>
|
|
|
|
<groupId>com.example</groupId>
|
|
|
|
<artifactId>unilife-server</artifactId>
|
|
|
|
<artifactId>unilife-server</artifactId>
|
|
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
|
|
<name>backend</name>
|
|
|
|
<name>backend</name>
|
|
|
|
<description>backend</description>
|
|
|
|
<description>backend</description>
|
|
|
|
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
<properties>
|
|
|
|
<java.version>1.8</java.version>
|
|
|
|
<java.version>17</java.version>
|
|
|
|
|
|
|
|
<spring-boot.version>3.4.3</spring-boot.version>
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
|
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
|
|
<spring-boot.version>2.7.6</spring-boot.version>
|
|
|
|
|
|
|
|
</properties>
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dependencyManagement>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
|
|
<artifactId>spring-boot-dependencies</artifactId>
|
|
|
|
|
|
|
|
<version>${spring-boot.version}</version>
|
|
|
|
|
|
|
|
<type>pom</type>
|
|
|
|
|
|
|
|
<scope>import</scope>
|
|
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
</dependencyManagement>
|
|
|
|
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
<dependencies>
|
|
|
|
|
|
|
|
<!-- Web -->
|
|
|
|
<dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
|
|
</dependency>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- MyBatis -->
|
|
|
|
<dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.mybatis.spring.boot</groupId>
|
|
|
|
<groupId>org.mybatis.spring.boot</groupId>
|
|
|
|
<artifactId>mybatis-spring-boot-starter</artifactId>
|
|
|
|
<artifactId>mybatis-spring-boot-starter</artifactId>
|
|
|
|
<version>2.3.0</version>
|
|
|
|
<version>3.0.4</version>
|
|
|
|
</dependency>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- MySQL Connector -->
|
|
|
|
<dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.mysql</groupId>
|
|
|
|
<groupId>com.mysql</groupId>
|
|
|
|
<artifactId>mysql-connector-j</artifactId>
|
|
|
|
<artifactId>mysql-connector-j</artifactId>
|
|
|
|
|
|
|
|
<version>8.0.33</version>
|
|
|
|
<scope>runtime</scope>
|
|
|
|
<scope>runtime</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Lombok -->
|
|
|
|
<dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.projectlombok</groupId>
|
|
|
|
<groupId>org.projectlombok</groupId>
|
|
|
|
<artifactId>lombok</artifactId>
|
|
|
|
<artifactId>lombok</artifactId>
|
|
|
|
<version>1.18.36</version>
|
|
|
|
<version>1.18.36</version>
|
|
|
|
<optional>true</optional>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- IP2Region -->
|
|
|
|
<dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.lionsoul</groupId>
|
|
|
|
<groupId>org.lionsoul</groupId>
|
|
|
|
<artifactId>ip2region</artifactId>
|
|
|
|
<artifactId>ip2region</artifactId>
|
|
|
|
<version>2.7.0</version>
|
|
|
|
<version>2.7.0</version>
|
|
|
|
</dependency>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Hutool -->
|
|
|
|
<dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<groupId>cn.hutool</groupId>
|
|
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
|
|
<artifactId>hutool-all</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
<version>5.8.16</version>
|
|
|
|
</dependency>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Knife4j - OpenAPI3 with Jakarta -->
|
|
|
|
<dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.github.xiaoymin</groupId>
|
|
|
|
<groupId>com.github.xiaoymin</groupId>
|
|
|
|
<artifactId>knife4j-openapi2-spring-boot-starter</artifactId>
|
|
|
|
<artifactId>knife4j-openapi3-jakarta-spring-boot-starter</artifactId>
|
|
|
|
<version>4.4.0</version>
|
|
|
|
<version>4.4.0</version>
|
|
|
|
</dependency>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- JWT -->
|
|
|
|
<dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>cn.hutool</groupId>
|
|
|
|
<groupId>io.jsonwebtoken</groupId>
|
|
|
|
<artifactId>hutool-all</artifactId>
|
|
|
|
<artifactId>jjwt-api</artifactId>
|
|
|
|
<version>5.8.16</version>
|
|
|
|
<version>0.11.5</version>
|
|
|
|
</dependency>
|
|
|
|
</dependency>
|
|
|
|
<!-- jwt-->
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>io.jsonwebtoken</groupId>
|
|
|
|
<groupId>io.jsonwebtoken</groupId>
|
|
|
|
<artifactId>jjwt</artifactId>
|
|
|
|
<artifactId>jjwt-impl</artifactId>
|
|
|
|
<version>0.9.1</version>
|
|
|
|
<version>0.11.5</version>
|
|
|
|
|
|
|
|
<scope>runtime</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependency>
|
|
|
|
<!-- redis-->
|
|
|
|
<dependency>
|
|
|
|
|
|
|
|
<groupId>io.jsonwebtoken</groupId>
|
|
|
|
|
|
|
|
<artifactId>jjwt-jackson</artifactId>
|
|
|
|
|
|
|
|
<version>0.11.5</version>
|
|
|
|
|
|
|
|
<scope>runtime</scope>
|
|
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Redis -->
|
|
|
|
<dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-starter-data-redis</artifactId>
|
|
|
|
<artifactId>spring-boot-starter-data-redis</artifactId>
|
|
|
|
</dependency>
|
|
|
|
</dependency>
|
|
|
|
<!-- 邮箱服务-->
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Mail -->
|
|
|
|
<dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-starter-mail</artifactId>
|
|
|
|
<artifactId>spring-boot-starter-mail</artifactId>
|
|
|
|
</dependency>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Test -->
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
|
|
|
|
|
|
<scope>test</scope>
|
|
|
|
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
</dependencies>
|
|
|
|
<dependencyManagement>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
|
|
<artifactId>spring-boot-dependencies</artifactId>
|
|
|
|
|
|
|
|
<version>${spring-boot.version}</version>
|
|
|
|
|
|
|
|
<type>pom</type>
|
|
|
|
|
|
|
|
<scope>import</scope>
|
|
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
</dependencyManagement>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugins>
|
|
|
|
|
|
|
|
<!-- 编译器插件 -->
|
|
|
|
<plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
<version>3.8.1</version>
|
|
|
|
<version>3.11.0</version>
|
|
|
|
<configuration>
|
|
|
|
<configuration>
|
|
|
|
<source>1.8</source>
|
|
|
|
<source>${java.version}</source>
|
|
|
|
<target>1.8</target>
|
|
|
|
<target>${java.version}</target>
|
|
|
|
<encoding>UTF-8</encoding>
|
|
|
|
<encoding>UTF-8</encoding>
|
|
|
|
</configuration>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Spring Boot 插件 -->
|
|
|
|
<plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
<version>${spring-boot.version}</version>
|
|
|
|
<version>${spring-boot.version}</version>
|
|
|
|
<configuration>
|
|
|
|
|
|
|
|
<mainClass>com.example.unilife.BackendApplication</mainClass>
|
|
|
|
|
|
|
|
<skip>true</skip>
|
|
|
|
|
|
|
|
</configuration>
|
|
|
|
|
|
|
|
<executions>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<execution>
|
|
|
|
<id>repackage</id>
|
|
|
|
|
|
|
|
<goals>
|
|
|
|
<goals>
|
|
|
|
<goal>repackage</goal>
|
|
|
|
<goal>repackage</goal>
|
|
|
|
</goals>
|
|
|
|
</goals>
|
|
|
|