fix:clock is moving backwards优化

This commit is contained in:
zhouz
2024-08-30 16:44:56 +08:00
parent c93396678a
commit b1b0b23171
2 changed files with 16 additions and 2 deletions

View File

@@ -0,0 +1,11 @@
package org.nl.config;
import cn.hutool.core.util.IdUtil;
import com.yomahub.tlog.id.TLogIdGenerator;
public class TlogIdGenerator extends TLogIdGenerator {
@Override
public String generateTraceId() {
return IdUtil.getSnowflake(1, 1).nextIdStr();
}
}

View File

@@ -19,7 +19,7 @@ spring:
enabledBanner: false # 是否启用 控制台banner默认true
enabledCollect: true # 是否开启监控指标采集默认true
collectorTypes: logging # 监控数据采集器类型logging | micrometer | internal_logging默认micrometer
logPath: C:\log\lms # 监控日志数据路径,默认 ${user.home}/logs采集类型非logging不用配置
logPath: ~/file/log/lms # 监控日志数据路径,默认 ${user.home}/logs采集类型非logging不用配置
monitorInterval: 8
tomcatTp: # tomcat webserver 线程池配置
threadPoolAliasName: tomcat 线程池 # 线程池别名,可选
@@ -92,7 +92,7 @@ logging:
file:
path: d:\log\lms
config: classpath:logback-spring.xml
#接口日志黑名单
#接口日志黑名单
include-paths:
- getHotPointStatus
# sa-token白名单配置
@@ -184,3 +184,6 @@ jetcache:
lucene:
index:
path: D:\log\lms\lucene\index
tlog:
id-generator: org.nl.config.TlogIdGenerator