feat: 更新项目配置,升级Java版本至21,添加Lombok注解处理器,优化设备状态解析和任务更新逻辑

This commit is contained in:
yahaozhang
2025-09-16 01:21:24 +08:00
parent cb69777499
commit b14573bb88
22 changed files with 988 additions and 73 deletions

View File

@@ -3,14 +3,30 @@ spring:
name: gameplatform-server
datasource:
url: jdbc:mysql://192.140.164.137:3306/login_task_db?useSSL=false&serverTimezone=UTC&characterEncoding=utf8&allowPublicKeyRetrieval=true
url: jdbc:mysql://120.46.74.24:3306/login_task_db?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&sessionVariables=innodb_lock_wait_timeout=30
username: login_task_db
password: 3MaXfeWJ4d6cGMrL
driver-class-name: com.mysql.cj.jdbc.Driver
hikari:
maximum-pool-size: 10
minimum-idle: 2
maximum-pool-size: 50
minimum-idle: 10
connection-timeout: 30000
idle-timeout: 600000
max-lifetime: 1800000
leak-detection-threshold: 60000
validation-timeout: 5000
connection-test-query: SELECT 1
# 连接池健康监控和自动重连
initialization-fail-timeout: 1
register-mbeans: true
# 自动重连配置
auto-commit: true
task:
detection:
poll:
size: 4
transaction:
default-timeout: 30
mybatis-plus:
mapper-locations: classpath:mapper/**/*.xml
@@ -39,16 +55,16 @@ logging:
root: info
com.gameplatform.server: debug # 保持整体调试
# 仅保留设备解析最终汇总INFO其余降级
com.gameplatform.server.service.device.DeviceStatusService: info
com.gameplatform.server.service.device.DeviceStatusCheckService: info
# 脚本客户端与定时任务降噪
com.gameplatform.server.service.external.ScriptClient: warn
com.gameplatform.server.task.DeviceStatusCheckTask: warn
com.gameplatform.server.task.UsingLinkCheckTask: warn
# 完成检测服务降噪屏蔽debug“置信度低”之类日志
com.gameplatform.server.service.detection.GameCompletionDetectionService: warn
# 设备任务更新服务:只保留警告/错误(不输出“开始处理设备/点数已更新为”等调试信息)
com.gameplatform.server.service.link.DeviceTaskUpdateService: warn
# com.gameplatform.server.service.device.DeviceStatusService: info
# com.gameplatform.server.service.device.DeviceStatusCheckService: info
# # 脚本客户端与定时任务降噪
# com.gameplatform.server.service.external.ScriptClient: warn
# com.gameplatform.server.task.DeviceStatusCheckTask: warn
# com.gameplatform.server.task.UsingLinkCheckTask: warn
# # 完成检测服务降噪屏蔽debug“置信度低”之类日志
# com.gameplatform.server.service.detection.GameCompletionDetectionService: warn
# # 设备任务更新服务:只保留警告/错误(不输出“开始处理设备/点数已更新为”等调试信息)
# com.gameplatform.server.service.link.DeviceTaskUpdateService: warn
# Mapper 与 SQL 调用降噪(屏蔽 MyBatis 的参数/SQL DEBUG
com.gameplatform.server.mapper: warn
com.baomidou.mybatisplus: warn