Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
commons
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DevOps
commons
Commits
da4e5345
Commit
da4e5345
authored
Apr 13, 2018
by
zhiguo.liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# 修改新发号器默认配置
parent
6ac83088
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
IDGenerator.java
...src/main/java/cn/quantgroup/tech/util/id/IDGenerator.java
+3
-3
No files found.
commons-spring/src/main/java/cn/quantgroup/tech/util/id/IDGenerator.java
View file @
da4e5345
...
@@ -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-0
3
-01}"
)
@Value
(
"${id.epochStr:2018-0
4
-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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment