Files
HAOVP/docs/video-common模块目录结构.md
T

1.5 KiB

video-common模块实现步骤和代码

基于Spring Boot 3.2.4、Spring Cloud 2023.0.1和Spring Cloud Alibaba 2023.0.1.0技术栈,完整实现video-common模块。

目录结构设计

首先,创建以下目录结构:

video-common/
├── src/
│   ├── main/
│   │   ├── java/
│   │   │   └── com/
│   │   │       └── nuaa/
│   │   │           └── video/
│   │   │               └── common/
│   │   │                   ├── annotation/      # 自定义注解
│   │   │                   ├── config/          # 配置类
│   │   │                   ├── constants/       # 常量定义
│   │   │                   ├── exception/       # 异常处理
│   │   │                   ├── model/           # 通用数据模型
│   │   │                   │   ├── dto/         # 数据传输对象
│   │   │                   │   ├── entity/      # 实体类
│   │   │                   │   ├── enums/       # 枚举类
│   │   │                   │   └── vo/          # 视图对象
│   │   │                   ├── utils/           # 工具类
│   │   │                   └── feign/           # Feign接口
│   │   └── resources/
│   │       └── META-INF/
│   │           └── spring.factories  # 自动配置
│   └── test/
└── pom.xml