Commit 311488ce by fz

1.snowflake配置信息打印

1 parent f98310fe
......@@ -22,7 +22,10 @@ public class SnowWorkerConfig {
@Bean("snowflakeWorker")
public SnowflakeWorker getSnowFlakeWorker() {
SnowflakeWorker worker = new SnowflakeWorker(Long.valueOf(snowFlakeConfig.getWorkerId()),Long.valueOf(snowFlakeConfig.getDatacenterId()));
String workerId = snowFlakeConfig.getWorkerId();
String datacenterId = snowFlakeConfig.getDatacenterId();
log.info("SnowWorkerConfig====workerId:"+workerId+"====datacenterId:"+datacenterId);
SnowflakeWorker worker = new SnowflakeWorker(Long.valueOf(workerId),Long.valueOf(datacenterId));
return worker;
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!