Commit da4e5345 authored by zhiguo.liu's avatar zhiguo.liu

# 修改新发号器默认配置

parent 6ac83088
...@@ -69,9 +69,9 @@ public class IDGenerator implements InitializingBean { ...@@ -69,9 +69,9 @@ public class IDGenerator implements InitializingBean {
/** /**
* Bits allocate * Bits allocate
*/ */
@Value("${id.dataCenterIdBits:9}") @Value("${id.dataCenterIdBits:0}")
protected int dataCenterIdBits; protected int dataCenterIdBits;
@Value("${id.workerBits:13}") @Value("${id.workerBits:8}")
protected int workerBits; protected int workerBits;
@Value("${id.seqBits:13}") @Value("${id.seqBits:13}")
protected int seqBits; protected int seqBits;
...@@ -226,7 +226,7 @@ public class IDGenerator implements InitializingBean { ...@@ -226,7 +226,7 @@ public class IDGenerator implements InitializingBean {
} }
} }
@Value("${id.epochStr:2018-03-01}") @Value("${id.epochStr:2018-04-01}")
public void setEpochStr(String epochStr) { public void setEpochStr(String epochStr) {
if (StringUtils.isNotBlank(epochStr)) { if (StringUtils.isNotBlank(epochStr)) {
this.epochStr = epochStr; this.epochStr = epochStr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment