feat(electron):优化应用启动和健康检查逻辑

- 修改 Spring Boot 配置启用懒加载初始化
- 优化主进程窗口打开逻辑,增加销毁状态检查
- 简化数据迁移函数中的条件判断
- 添加 JVM 参数 UseSerialGC优化内存使用- 移除 Spring 进程的标准输出和错误流监听- 改进健康检查机制,使用版本接口确认服务就绪
- 调整启动超时时间并优化重试间隔
- 延迟更新检查时机以提升启动速度
This commit is contained in:
2025-10-28 11:05:53 +08:00
parent 1aceceb38f
commit 6443cdc8d0
3 changed files with 57 additions and 70 deletions

View File

@@ -64,7 +64,6 @@
<scope>provided</scope>
</dependency>
<!-- 拆分 hutool-all 为按需依赖,减少 JAR 包体积 -->
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-crypto</artifactId>

View File

@@ -9,7 +9,7 @@ javafx:
spring:
main:
lazy-initialization: false
lazy-initialization: true
datasource:
url: jdbc:sqlite:./data/erp-cache.db?journal_mode=WAL&synchronous=NORMAL&cache_size=10000&temp_store=memory&busy_timeout=30000
driver-class-name: org.sqlite.JDBC