## 技术栈 - Spring Boot 3.2 + Java 17 + MyBatis-Plus 3.5 - Spring Security + JWT 认证(与 NestJS 兼容) - MapStruct + Knife4j + Druid + Hutool + FastJSON2 - 腾讯云 COS 文件上传 ## 项目规模 - 239 个 Java 文件,246 个文件总计 - 39 个实体类映射到现有数据库 - ~256 个 API 端点,与 NestJS 完全兼容 ## 模块清单 - Phase 0: 脚手架 + 基础框架(BaseEntity, Result, JWT, Security, AOP权限) - Phase 1: 认证/用户/角色/权限/租户(~35 接口) - Phase 2: 菜单/字典/配置/日志(~25 接口) - Phase 3: 赛事核心 — 赛事/报名/作品/团队/附件/公告(~46 接口) - Phase 4: 评审/计分/成果 — 评审规则/评委/分配/评分/排名/奖项/发布(~52 接口) - Phase 5: 作业 — 作业/提交/评分/评审规则(~20 接口) - Phase 6: 公众端 — 注册/登录/画廊/活动/作品库/子女/互动/内容审核(~55 接口) - Phase 7: UGC — 作品/绘本页/标签/点赞/收藏/评论/举报/审核日志(~15 接口) - Phase 8: 文件上传/OSS(1 接口) ## 验证结果 - mvn compile 零错误,1.8秒启动 - 62 个 API 端点手动测试通过(GET + POST/PATCH/DELETE) - 20 个前端页面 Playwright 自动化测试通过,69+ API 调用零错误 - 核心业务全流程验证:登录→赛事→报名→作品→评审→计分→排名→奖项→发布 ## 数据库适配 - 使用现有表名(Flyway 暂禁用,待正式切换时启用) - Flyway V1/V2 迁移脚本已准备(表重命名+新审计字段) - 修复:configs/t_contest_registration 添加 valid_state 列 - 修复:所有表 modify_time 添加 DEFAULT CURRENT_TIMESTAMP Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
199 lines
7.0 KiB
XML
199 lines
7.0 KiB
XML
<?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>
|
|
<version>3.2.5</version>
|
|
<relativePath/>
|
|
</parent>
|
|
|
|
<groupId>com.competition</groupId>
|
|
<artifactId>competition-management-system</artifactId>
|
|
<version>1.0.0</version>
|
|
<name>competition-management-system</name>
|
|
<description>少儿绘本创作活动管理平台 - Java 后端</description>
|
|
|
|
<properties>
|
|
<java.version>17</java.version>
|
|
<mybatis-plus.version>3.5.7</mybatis-plus.version>
|
|
<druid.version>1.2.23</druid.version>
|
|
<jjwt.version>0.12.6</jjwt.version>
|
|
<knife4j.version>4.5.0</knife4j.version>
|
|
<mapstruct.version>1.5.5.Final</mapstruct.version>
|
|
<hutool.version>5.8.32</hutool.version>
|
|
<fastjson2.version>2.0.53</fastjson2.version>
|
|
<cos.version>5.6.227</cos.version>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<!-- Spring Boot Starters -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-security</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-validation</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-data-redis</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-aop</artifactId>
|
|
</dependency>
|
|
|
|
<!-- MyBatis-Plus -->
|
|
<dependency>
|
|
<groupId>com.baomidou</groupId>
|
|
<artifactId>mybatis-plus-spring-boot3-starter</artifactId>
|
|
<version>${mybatis-plus.version}</version>
|
|
</dependency>
|
|
|
|
<!-- Druid 连接池 -->
|
|
<dependency>
|
|
<groupId>com.alibaba</groupId>
|
|
<artifactId>druid-spring-boot-3-starter</artifactId>
|
|
<version>${druid.version}</version>
|
|
</dependency>
|
|
|
|
<!-- MySQL 驱动 -->
|
|
<dependency>
|
|
<groupId>com.mysql</groupId>
|
|
<artifactId>mysql-connector-j</artifactId>
|
|
<scope>runtime</scope>
|
|
</dependency>
|
|
|
|
<!-- Flyway 数据库迁移 -->
|
|
<dependency>
|
|
<groupId>org.flywaydb</groupId>
|
|
<artifactId>flyway-core</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.flywaydb</groupId>
|
|
<artifactId>flyway-mysql</artifactId>
|
|
</dependency>
|
|
|
|
<!-- JWT -->
|
|
<dependency>
|
|
<groupId>io.jsonwebtoken</groupId>
|
|
<artifactId>jjwt-api</artifactId>
|
|
<version>${jjwt.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.jsonwebtoken</groupId>
|
|
<artifactId>jjwt-impl</artifactId>
|
|
<version>${jjwt.version}</version>
|
|
<scope>runtime</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.jsonwebtoken</groupId>
|
|
<artifactId>jjwt-jackson</artifactId>
|
|
<version>${jjwt.version}</version>
|
|
<scope>runtime</scope>
|
|
</dependency>
|
|
|
|
<!-- Knife4j API 文档 -->
|
|
<dependency>
|
|
<groupId>com.github.xiaoymin</groupId>
|
|
<artifactId>knife4j-openapi3-jakarta-spring-boot-starter</artifactId>
|
|
<version>${knife4j.version}</version>
|
|
</dependency>
|
|
|
|
<!-- MapStruct -->
|
|
<dependency>
|
|
<groupId>org.mapstruct</groupId>
|
|
<artifactId>mapstruct</artifactId>
|
|
<version>${mapstruct.version}</version>
|
|
</dependency>
|
|
|
|
<!-- Hutool 工具集 -->
|
|
<dependency>
|
|
<groupId>cn.hutool</groupId>
|
|
<artifactId>hutool-all</artifactId>
|
|
<version>${hutool.version}</version>
|
|
</dependency>
|
|
|
|
<!-- FastJSON2 -->
|
|
<dependency>
|
|
<groupId>com.alibaba.fastjson2</groupId>
|
|
<artifactId>fastjson2</artifactId>
|
|
<version>${fastjson2.version}</version>
|
|
</dependency>
|
|
|
|
<!-- 腾讯云 COS -->
|
|
<dependency>
|
|
<groupId>com.qcloud</groupId>
|
|
<artifactId>cos_api</artifactId>
|
|
<version>${cos.version}</version>
|
|
</dependency>
|
|
|
|
<!-- Lombok -->
|
|
<dependency>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
|
|
<!-- Test -->
|
|
<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>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<configuration>
|
|
<source>${java.version}</source>
|
|
<target>${java.version}</target>
|
|
<annotationProcessorPaths>
|
|
<path>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
<version>${lombok.version}</version>
|
|
</path>
|
|
<path>
|
|
<groupId>org.mapstruct</groupId>
|
|
<artifactId>mapstruct-processor</artifactId>
|
|
<version>${mapstruct.version}</version>
|
|
</path>
|
|
<!-- Lombok-MapStruct 绑定,确保 MapStruct 能识别 Lombok 生成的方法 -->
|
|
<path>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok-mapstruct-binding</artifactId>
|
|
<version>0.2.0</version>
|
|
</path>
|
|
</annotationProcessorPaths>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
</project>
|