Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
zhangjian1949
apollo
提交
e8e80d32
apollo
项目概览
zhangjian1949
/
apollo
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
apollo
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
e8e80d32
编写于
4月 29, 2016
作者:
J
Jason Song
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #160 from nobodyiam/misc-improvement
Misc improvement
上级
d0d412c4
9016c695
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
3 addition
and
15 deletion
+3
-15
apollo-adminservice/src/main/resources/bootstrap.yml
apollo-adminservice/src/main/resources/bootstrap.yml
+1
-7
apollo-biz/src/main/java/com/ctrip/apollo/biz/utils/ReleaseKeyGenerator.java
.../java/com/ctrip/apollo/biz/utils/ReleaseKeyGenerator.java
+2
-1
apollo-configservice/src/main/resources/bootstrap.yml
apollo-configservice/src/main/resources/bootstrap.yml
+0
-7
未找到文件。
apollo-adminservice/src/main/resources/bootstrap.yml
浏览文件 @
e8e80d32
eureka
:
instance
:
hostname
:
${hostname:localhost}
preferIpAddress
:
true
client
:
serviceUrl
:
defaultZone
:
http://${eureka.instance.hostname}:8080/eureka/
healthcheck
:
enabled
:
true
ctrip
:
eureka
:
dev
:
${ctrip_eureka_dev}
fat
:
${ctrip_eureka_fat}
uat
:
${ctrip_eureka_uat}
pro
:
${ctrip_eureka_pro}
\ No newline at end of file
apollo-biz/src/main/java/com/ctrip/apollo/biz/utils/ReleaseKeyGenerator.java
浏览文件 @
e8e80d32
...
...
@@ -6,6 +6,7 @@ import com.ctrip.apollo.biz.entity.Namespace;
import
com.ctrip.apollo.core.utils.ByteUtil
;
import
com.ctrip.apollo.core.utils.MachineUtil
;
import
java.security.SecureRandom
;
import
java.text.DateFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
...
...
@@ -17,7 +18,7 @@ import java.util.concurrent.atomic.AtomicInteger;
*/
public
class
ReleaseKeyGenerator
{
private
static
final
DateFormat
TIMESTAMP_FORMAT
=
new
SimpleDateFormat
(
"yyyyMMddHHmmss"
);
private
static
final
AtomicInteger
releaseCounter
=
new
AtomicInteger
();
private
static
final
AtomicInteger
releaseCounter
=
new
AtomicInteger
(
new
SecureRandom
().
nextInt
()
);
private
static
final
Joiner
KEY_JOINER
=
Joiner
.
on
(
"-"
);
/**
...
...
apollo-configservice/src/main/resources/bootstrap.yml
浏览文件 @
e8e80d32
...
...
@@ -7,10 +7,3 @@ eureka:
defaultZone
:
http://${eureka.instance.hostname}:8080/eureka/
healthcheck
:
enabled
:
true
ctrip
:
eureka
:
dev
:
${ctrip_eureka_dev}
fat
:
${ctrip_eureka_fat}
uat
:
${ctrip_eureka_uat}
pro
:
${ctrip_eureka_pro}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录