核心功能(已连接真实源服务器验证):
- /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>
1.1 KiB
1.1 KiB
name, description, metadata
| name | description | metadata | ||
|---|---|---|---|---|
| source-server-location | 源服务器jeecg代码位置、部署地址、接口账号等环境信息 |
|
- 源服务器部署地址(测试):
http://10.10.10.228:29999(业务接口 + 换token + 探活目标) - 源服务器代码:
E:\giteaspace\data-center-boot-spring3(jeecg,Spring3)- 登录/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)
- 登录/token:
- 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