mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-09 08:20:31 +08:00
7b2bd307f1
- backend/: 13 Maven modules (cw-elevator-application, cloudwalk-cloud, intelligent-cwoscomponent, ninca-crk, etc.) - frontend/: 4 Vue projects (elevator-front, cwos-portal, alarm-front, front_acs) + decompiled + scripts - scripts/: build, test-env, tools (Docker Compose, service templates, API parity) - docs/: AGENTS.md, superpowers specs, architecture docs - .gitignore: standard Java/Maven exclusions Moved from legacy maven-*/ root layout to backend/ organized structure.
19 lines
1.1 KiB
Markdown
19 lines
1.1 KiB
Markdown
# 10 `maven-ninca-crk` — 阿里巴巴规范走查(整理版)
|
|
|
|
**范围**:仅 **2** 个 Java 文件 — `Application.java`、`package-info.java`(排除 `target/`)。
|
|
|
|
## 问题清单
|
|
|
|
| 级别 | 文件 | 说明 | 建议 |
|
|
|------|------|------|------|
|
|
| 严重 | `Application.java` | `SpringApplication#run` 阻塞至关闭,其后「启动完成」**语义接近进程退出** | 用 `ApplicationReadyEvent` / `ApplicationRunner` 记录就绪 |
|
|
| 警告 | `Application.java` | 使用 **`System.out.println`** | 换 **SLF4J** |
|
|
| 建议 | `Application.java` | `new SpringApplication(new Object[]{...})` 冗余 | `SpringApplication.run(Application.class, args)` |
|
|
| 建议 | `Application.java` | `@EnableFeignClients` 未收窄包 | 显式 `basePackages` 减少扫描 |
|
|
| 建议 | `Application.java` | `netflix.feign.EnableFeignClients` | 随 Spring Cloud 升级迁移 **OpenFeign** 包路径 |
|
|
| 通过 | `package-info.java` | 包说明清晰 | — |
|
|
|
|
## 小结
|
|
|
|
体量极小,**无**业务逻辑层;重点在 **启动生命周期日志** 与 **日志/依赖演进**。
|