|
@@ -51,6 +51,7 @@ public class JDBCIdGenerator {
|
|
|
|
|
|
|
|
static void initWorkerId() {
|
|
static void initWorkerId() {
|
|
|
String workerId = System.getProperty("jdbc.worker.id");
|
|
String workerId = System.getProperty("jdbc.worker.id");
|
|
|
|
|
+ if (workerId == null)workerId="1001";
|
|
|
if (StringUtils.isNoneBlank(workerId)) {
|
|
if (StringUtils.isNoneBlank(workerId)) {
|
|
|
setWorkerId(Long.valueOf(workerId));
|
|
setWorkerId(Long.valueOf(workerId));
|
|
|
return;
|
|
return;
|