用户,社交接口
Change-Id: I10d13773cbe4bbcf3b69a2038cdf7aa9ba54b6df
diff --git a/pom.xml b/pom.xml
index 20b8e71..0377a48 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,7 +1,7 @@
<?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">
+ 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>groupId</groupId>
@@ -10,14 +10,14 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
- <version>2.6.0</version> <!-- 使用你希望的Spring Boot版本 -->
- <relativePath /> <!-- lookup parent from repository -->
+ <version>2.6.0</version>
+ <relativePath/> <!-- lookup parent from repository -->
</parent>
+
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <sa-token.version>1.37.0</sa-token.version>
</properties>
<dependencies>
@@ -78,16 +78,6 @@
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
</dependency>
- <dependency>
- <groupId>com.github.xiaoymin</groupId>
- <artifactId>knife4j-openapi3-jakarta-spring-boot-starter</artifactId>
- <version>4.5.0</version>
- </dependency>
- <dependency>
- <groupId>javax.validation</groupId>
- <artifactId>validation-api</artifactId>
- <version>2.0.1.Final</version>
- </dependency>
<!-- Spring Web MVC -->
<dependency>
<groupId>org.springframework</groupId>
@@ -118,17 +108,11 @@
<version>1.18.30</version> <!-- 确保使用的是最新版本 -->
<scope>provided</scope>
</dependency>
- <dependency>
- <groupId>com.github.pagehelper</groupId>
- <artifactId>pagehelper-spring-boot-starter</artifactId>
- <version>1.4.7</version>
- </dependency>
-
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
- <version>1.7.32</version> <!-- 版本可以根据需要调整 -->
+ <version>1.7.30</version> <!-- 版本可以根据需要调整 -->
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
@@ -136,6 +120,7 @@
<version>1.2.3</version> <!-- 版本可以根据需要调整 -->
</dependency>
<dependency>
+
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.4</version>
@@ -145,7 +130,11 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
-
+ <dependency>
+ <groupId>com.baidubce</groupId>
+ <artifactId>qianfan</artifactId>
+ <version>0.1.1</version>
+ </dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-webflux</artifactId>
@@ -156,18 +145,51 @@
<version>4.12</version>
<scope>test</scope>
</dependency>
-
+ <dependency>
+ <groupId>org.mockito</groupId>
+ <artifactId>mockito-core</artifactId>
+ <scope>test</scope>
+ </dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
+
+ <dependency>
+ <groupId>jakarta.persistence</groupId>
+ <artifactId>jakarta.persistence-api</artifactId>
+ <version>3.1.0</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-starter-data-jpa</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>jakarta.transaction</groupId>
+ <artifactId>jakarta.transaction-api</artifactId>
+ <version>2.0.0</version> <!-- 使用最新版本 -->
+ </dependency>
+
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-core</artifactId>
+ <version>5.6.7.Final</version> <!-- 与 Jakarta 兼容的版本 -->
+ </dependency>
+
+ <dependency>
+ <groupId>mysql</groupId>
+ <artifactId>mysql-connector-java</artifactId>
+ <version>8.0.27</version> <!-- 使用适合你的版本 -->
+ </dependency>
+
<dependency>
<groupId>com.turn</groupId>
<artifactId>ttorrent-common</artifactId>
<version>1.3.0-SNAPSHOT</version>
</dependency>
-
<!-- ttorrent -->
<dependency>
<groupId>com.turn</groupId>
@@ -204,30 +226,33 @@
<artifactId>ttorrent-tracker</artifactId>
<version>1.3.0-SNAPSHOT</version>
</dependency>
+
<dependency>
- <groupId>com.github.xiaoymin</groupId>
- <artifactId>knife4j-openapi3-jakarta-spring-boot-starter</artifactId>
- <version>4.5.0</version>
+ <groupId>com.github.pagehelper</groupId>
+ <artifactId>pagehelper-spring-boot-starter</artifactId>
+ <version>1.4.7</version>
</dependency>
<dependency>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-spring-boot-starter</artifactId>
- <version>${sa-token.version}</version>
+ <version>1.38.0</version> <!-- 请确认使用最新版本或与你的Spring Boot版本匹配 -->
</dependency>
-
-
<dependency>
- <groupId>jakarta.persistence</groupId>
- <artifactId>jakarta.persistence-api</artifactId>
- <version>3.1.0</version>
+ <groupId>org.simpleframework</groupId>
+ <artifactId>simple</artifactId>
+ <version>4.1.21</version>
</dependency>
+
+
</dependencies>
+
+
<build>
<plugins>
<plugin>
@@ -272,8 +297,7 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>2.9</version>
<configuration>
- <!--suppress
- UnresolvedMavenProperty -->
+ <!--suppress UnresolvedMavenProperty -->
<argLine>${surefireArgLine}</argLine>
<skipTests>false</skipTests>
<includes>
@@ -292,20 +316,20 @@
</plugin>
</plugins>
-<!-- <resources>-->
-<!-- <resource>-->
-<!-- <directory>src/main/java</directory>-->
-<!-- <includes>-->
-<!-- <include>**/*.xml</include>-->
-<!-- </includes>-->
-<!-- </resource>-->
-<!-- <resource>-->
-<!-- <directory>libs</directory>-->
-<!-- <includes>-->
-<!-- <include>*.jar</include>-->
-<!-- </includes>-->
-<!-- </resource>-->
-<!-- </resources>-->
+ <!-- <resources>-->
+ <!-- <resource>-->
+ <!-- <directory>src/main/java</directory>-->
+ <!-- <includes>-->
+ <!-- <include>**/*.xml</include>-->
+ <!-- </includes>-->
+ <!-- </resource>-->
+ <!-- <resource>-->
+ <!-- <directory>libs</directory>-->
+ <!-- <includes>-->
+ <!-- <include>*.jar</include>-->
+ <!-- </includes>-->
+ <!-- </resource>-->
+ <!-- </resources>-->
</build>