task_plan_execute/README.md

55 lines
1.5 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 任务规划系统 (Mission Planning System)
基于 Spring Boot 3.x + Java 17 构建的单体后端工程,实现了从战场事件感知到任务生成、执行监控的闭环管理。
## 技术栈
- **语言**: Java 17
- **框架**: Spring Boot 3.2.5
- **接口文档**: Knife4j 4.5.0 (OpenAPI 3)
- **构建工具**: Maven
- **数据存储**: 内存假数据(预留数据库扩展点)
## 功能模块
| 模块 | 说明 |
|------|------|
| 事件管理 | 事件接收、处理、展示CRUD + 状态变更) |
| 模板管理 | 模板集合接收、版本管理、展示、选择与推荐 |
| 计划管理 | 集中式/分布式计划管理、重配置、HITL通知 |
| 方案分发 | 任务方案分发、ACK响应、重试机制 |
| 状态监控 | 遥测数据接收、异常报警、数据陈旧检测 |
## 启动方式
```bash
# 1. 编译打包
mvn clean package -DskipTests
# 2. 运行
java -jar target/mission-planning-system-1.0.0.jar
# 或直接通过 Maven 启动
mvn spring-boot:run
```
## 接口文档
启动后访问:
- **Swagger 文档**: http://localhost:8080/swagger-ui/index.html
- **Knife4j 文档**: http://localhost:8080/doc.html
## 健康检查
- http://localhost:8080/api/health
## 扩展说明
当前版本使用内存假数据存储(`ConcurrentHashMap`后续可扩展接入达梦DM8或人大金仓KingbaseES数据库。
主要扩展点如下:
- `repository/` 目录预留了 Repository 接口定义
- 各 Service 实现类实现了对应接口,便于切换数据源
- 配置类预留了数据源配置扩展点