fix:clock is moving backwards优化
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user