2026-06-15 15:52:52 +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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
|
|
|
|
|
|
<parent>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-starter-parent</artifactId>
|
2026-06-16 11:47:36 +08:00
|
|
|
|
<version>3.5.15</version>
|
2026-06-15 15:52:52 +08:00
|
|
|
|
<relativePath/>
|
|
|
|
|
|
</parent>
|
|
|
|
|
|
|
|
|
|
|
|
<groupId>com.webgame</groupId>
|
|
|
|
|
|
<artifactId>webgame-backend</artifactId>
|
|
|
|
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
|
|
|
|
<name>webgame-backend</name>
|
|
|
|
|
|
<description>webgame-backend</description>
|
|
|
|
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
|
|
<java.version>21</java.version>
|
|
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
|
|
|
|
<dependencies>
|
2026-06-16 11:47:36 +08:00
|
|
|
|
<!-- Web MVC 核心 -->
|
2026-06-15 15:52:52 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
2026-06-16 11:47:36 +08:00
|
|
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
2026-06-15 15:52:52 +08:00
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- JPA 持久层 -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-starter-data-jpa</artifactId>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Redis + 连接池 -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-starter-data-redis</artifactId>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
|
|
|
<artifactId>commons-pool2</artifactId>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 参数校验 -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-starter-validation</artifactId>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
2026-06-16 11:47:36 +08:00
|
|
|
|
<!-- AOP/AspectJ -->
|
2026-06-15 15:52:52 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
2026-06-16 11:47:36 +08:00
|
|
|
|
<artifactId>spring-boot-starter-aop</artifactId>
|
2026-06-15 15:52:52 +08:00
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- MySQL 驱动 -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.mysql</groupId>
|
|
|
|
|
|
<artifactId>mysql-connector-j</artifactId>
|
|
|
|
|
|
<scope>runtime</scope>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Lombok -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.projectlombok</groupId>
|
|
|
|
|
|
<artifactId>lombok</artifactId>
|
|
|
|
|
|
<optional>true</optional>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Hutool 工具类 -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>cn.hutool</groupId>
|
|
|
|
|
|
<artifactId>hutool-all</artifactId>
|
|
|
|
|
|
<version>5.8.38</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
2026-06-16 11:47:36 +08:00
|
|
|
|
<!-- Sa-Token 权限框架(适配 Boot3) -->
|
2026-06-15 15:52:52 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>cn.dev33</groupId>
|
2026-06-16 11:47:36 +08:00
|
|
|
|
<artifactId>sa-token-spring-boot3-starter</artifactId>
|
2026-06-15 15:52:52 +08:00
|
|
|
|
<version>1.45.0</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>cn.dev33</groupId>
|
|
|
|
|
|
<artifactId>sa-token-redis-template</artifactId>
|
|
|
|
|
|
<version>1.45.0</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>cn.dev33</groupId>
|
|
|
|
|
|
<artifactId>sa-token-fastjson2</artifactId>
|
|
|
|
|
|
<version>1.45.0</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Fastjson2 序列化 -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.alibaba.fastjson2</groupId>
|
|
|
|
|
|
<artifactId>fastjson2</artifactId>
|
|
|
|
|
|
<version>2.0.57</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
2026-06-15 17:32:32 +08:00
|
|
|
|
<!-- BCrypt 密码加密 -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.security</groupId>
|
|
|
|
|
|
<artifactId>spring-security-crypto</artifactId>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
2026-06-16 11:47:36 +08:00
|
|
|
|
<!-- Swagger / OpenAPI 接口文档 -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springdoc</groupId>
|
|
|
|
|
|
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
|
|
|
|
|
|
<version>2.8.17</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
2026-06-15 15:52:52 +08:00
|
|
|
|
<!-- 统一测试依赖 -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
|
|
|
|
<scope>test</scope>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
|
|
|
|
<build>
|
|
|
|
|
|
<plugins>
|
|
|
|
|
|
<plugin>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
|
|
<configuration>
|
|
|
|
|
|
<excludes>
|
|
|
|
|
|
<exclude>
|
|
|
|
|
|
<groupId>org.projectlombok</groupId>
|
|
|
|
|
|
<artifactId>lombok</artifactId>
|
|
|
|
|
|
</exclude>
|
|
|
|
|
|
</excludes>
|
|
|
|
|
|
</configuration>
|
|
|
|
|
|
</plugin>
|
|
|
|
|
|
</plugins>
|
|
|
|
|
|
</build>
|
|
|
|
|
|
|
|
|
|
|
|
</project>
|