按《参赛成果物提交规范·赛道一》§6 红线: - samples/ 目录改名 sample/(git mv,保留历史) - 10 个中日文样本文件 + docs 参赛手册 PDF 重命名为 ASCII (requirements_*/template_*/rules_*/contestant-handbook.pdf) - tests/test_zh_template.py 硬编码绝对路径 D:\00_project\Genesis 改为相对路径 - 全局更新 21 个活动文件引用;历史日志/审查文档不改(追加说明记录) 全量 pytest 431 passed / 99.15%
98 lines
3.7 KiB
XML
98 lines
3.7 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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<parent>
|
|
<groupId>com.stock</groupId>
|
|
<artifactId>stock-trade-system</artifactId>
|
|
<version>1.0.0</version>
|
|
</parent>
|
|
<groupId>com.stock</groupId>
|
|
<artifactId>trade-gateway</artifactId>
|
|
<packaging>jar</packaging>
|
|
|
|
<name>trade-gateway</name>
|
|
<description>API Gateway for the trading system</description>
|
|
|
|
<dependencies>
|
|
<!-- Spring Cloud Starter Gateway -->
|
|
<dependency>
|
|
<groupId>org.springframework.cloud</groupId>
|
|
<artifactId>spring-cloud-starter-gateway</artifactId>
|
|
</dependency>
|
|
|
|
<!-- Spring Cloud Nacos Discovery (for dynamic routing based on service discovery) -->
|
|
<dependency>
|
|
<groupId>com.alibaba.cloud</groupId>
|
|
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
|
</dependency>
|
|
|
|
<!-- Spring Cloud Alibaba Nacos Config (for centralized configuration) -->
|
|
<dependency>
|
|
<groupId>com.alibaba.cloud</groupId>
|
|
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
|
</dependency>
|
|
|
|
<!-- Spring Boot Starter Actuator (for gateway monitoring) -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-actuator</artifactId>
|
|
</dependency>
|
|
|
|
<!-- Lombok -->
|
|
<dependency>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<!-- Trade Common Module -->
|
|
<dependency>
|
|
<groupId>com.stock</groupId>
|
|
<artifactId>trade-common</artifactId>
|
|
<version>${project.parent.version}</version>
|
|
</dependency>
|
|
|
|
<!-- Spring Boot Starter Security (if gateway handles authentication/authorization) -->
|
|
<!-- <dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-security</artifactId>
|
|
</dependency> -->
|
|
<!-- Or use Spring Cloud Security if integrating with OAuth2/OIDC -->
|
|
<!-- <dependency>
|
|
<groupId>org.springframework.cloud</groupId>
|
|
<artifactId>spring-cloud-starter-security</artifactId>
|
|
</dependency> -->
|
|
|
|
<!-- Resilience4j for circuit breaking, rate limiting (alternative to Sentinel if preferred) -->
|
|
<!-- <dependency>
|
|
<groupId>org.springframework.cloud</groupId>
|
|
<artifactId>spring-cloud-starter-circuitbreaker-resilience4j</artifactId>
|
|
</dependency> -->
|
|
|
|
<!-- Spring Cloud LoadBalancer (comes with Gateway, but explicit if needed for customization) -->
|
|
<dependency>
|
|
<groupId>org.springframework.cloud</groupId>
|
|
<artifactId>spring-cloud-starter-loadbalancer</artifactId>
|
|
</dependency>
|
|
|
|
<!-- SpringDoc OpenAPI for Gateway (special configuration needed) -->
|
|
<dependency>
|
|
<groupId>org.springdoc</groupId>
|
|
<artifactId>springdoc-openapi-starter-webflux-ui</artifactId> <!-- Use webflux for Gateway -->
|
|
<version>${springdoc-openapi.version}</version>
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
</project> |