Files
starRiverProperty/artifacts/decompiled/v1-cfr-compare-20211103/STARTUP-AUDIT-vs-maven.txt
反编译工作区 e8672a3c7b fix: relocate cwos-portal decompiled output to correct path; remove nested directory
Former-commit-id: dc30d42a8c55ed8b2382a41dc2434233fbed9930
2026-04-29 12:09:48 +08:00

28 lines
1.9 KiB
Plaintext
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.
V1 Fat JARcw-elevator-application-V1.0.0.20211103.jar)内置 lib 已用 CFR 0.152 反编译归档:
- cfr-by-artifact/、cfr-unified-java/(与 maven-unified-java 的 diff 见 diff-unified-summary.txt
与 maven-cw-elevator-application 无法启动 / 行为异常的主要差异(按优先级):
1) 组件扫描范围(根因之一:缺 Spring Bean
V1 AppApplicationcfr-unified-java/.../AppApplication.java):
@ComponentScan(basePackages={"cn.cloudwalk.**"})
@EnableFeignClients(basePackages={"cn.cloudwalk.**"})
V2 ElevatorApplication
scanBasePackages / EnableFeignClients 仅 cn.cloudwalk.elevator + cn.cloudwalk.rest.cwoscomponent
影响:依赖 JAR 内落在 cn.cloudwalk.intelligent.*、其他子包下的 @Component(如 davinci FileStorageManagerImpl
在 V2 下默认不会被扫描,除非显式 @Bean / 扩大 scan(已与 DavinciStorageBeansConfiguration 等补丁配合)。
2) MyBatis @MapperScan 包名(已修正为与 V1 语义一致)
V1@MapperScan({"cn.cloudwalk.elevator.**.mapper"})CFR 还原字面)
修正前 V2:误扫 *.dao;实际 *Mapper.java 均在并列包 *.mapper 下,dao 仅为业务 DAO 接口。
已改为扫各模块 …record|device|passrule|person|codeElevatorArea….mapper。
3) 运行环境与依赖
Spring Boot 1.5V1 fat 内嵌)vs 2.1.18Maven):配置键、Feign/Hystrix 包名迁移(netflix feign → openfeign)。
数据源:部署目录 driver-class-name 仍见 com.mysql.jdbc.Driver 时宜改为 com.mysql.cj.jdbc.Driver。
必须保证 DB/Redis/Nexus 与 intelligent-cwoscomponent 版本策略与构建脚本一致。
4) 入口类名
V1 根类 AppApplicationV2 使用 ElevatorApplication。可执行 JAR 的 Main-Class / 脚本需与当前主类一致。
审阅时可对照:cfr-unified-java vs maven-unified-java,仅路径列表见 only-in-*.txt,全文 diff 见 diff-unified-summary.txt。