feat: 完成数据中心转发网关核心功能(真实联调通过)

核心功能(已连接真实源服务器验证):
- /sys/watchUserLogin 本地处理:RSA解密验证设备密码(防伪造) + 单飞换token + Redis缓存
- 业务接口经本地通配Controller手动HttpUtils透传至源服务器 + 401检测清缓存
- token失效三重自愈:10秒探活 + 预过期刷新 + 被动401兜底

配置隔离(dotenv风格)+ 安全:
- .env 存敏感信息不入库;app.yml 用 ${KEY} 占位符引用;EnvLoader启动前加载
- 移除fastjson(规避0day),JSON改用Solon内置snack4

联调修复多个Solon实际API问题(配置文件名/YAML插件/打包/redisx/注解路径等)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-08-05 15:32:17 +08:00
co-authored by Claude
parent 159d6362af
commit 020f112124
20 changed files with 1196 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
---
name: source-server-location
description: 源服务器jeecg代码位置、部署地址、接口账号等环境信息
metadata:
type: reference
---
- **源服务器部署地址**(测试):`http://10.10.10.228:29999`(业务接口 + 换token + 探活目标)
- **源服务器代码**`E:\giteaspace\data-center-boot-spring3`jeecgSpring3
- 登录/token`jeecg-module-system/jeecg-system-biz/.../controller/LoginController.java``/sys/watchUserLogin``/sys/getToken``/sys/getThirdToken`
- RSA 工具:`jeecg-boot-base-core/.../util/RSAEncryptUtils.java`
- token 失效:`jeecg-boot-base-core/.../config/shiro/`JwtFilter/ShiroRealm
- **Redis**(复用 228 服务器):`10.10.10.228:6379`,密码 `Aa135790!123`,中转用 db11(与源服务器 db 隔离)
- **接口账号**(所有设备共用):username=`watchUser`password=`aECrgTES@@q32`
- **探活接口**`/watch/dcWatchEmeMobile/list`(带 `X-Access-Token` 头,200=有效/401=失效)
- **方案文档**`E:\data\ob_data\myob\11 健康长庆\数据中心转发网关优化\数据中心转发网关优化.md`