上一页 1 ··· 3 4 5 6 7

2020年2月6日

datadog agent接收指标数据,自己实现server

摘要: datadog agent配置datadog.yaml dd_url: http://192.168.2.133:31636 重启datadog,service datadog-agent restart spring boot启动类: import org.springframework.boot 阅读全文

posted @ 2020-02-06 11:50 yaoyu 阅读(1648) 评论(0) 推荐(0) 编辑

字符串生成64位hash字符串

摘要: 使用sha-256生成32位byte数组,基本很难重复,再转化为64位16进制数字字符串。 import java.io.UnsupportedEncodingException; import java.security.MessageDigest; import java.security.No 阅读全文

posted @ 2020-02-06 10:31 yaoyu 阅读(4008) 评论(0) 推荐(0) 编辑

2020年1月13日

spring boot启动顺序<转>

摘要: 在SpringBoot应用启动时,将会按照下面的顺序来进行属性的加载: (1) 首先加载启动命令中传入的参数; (2) 加载SPRING_APPLICATION_JSON中的属性。SPRING_APPLICATION_JSON是以JSON格式配置在系统环境变量中的内容; (3) 加载java:com 阅读全文

posted @ 2020-01-13 10:33 yaoyu 阅读(4559) 评论(0) 推荐(0) 编辑

spring boot指定不同的运行环境

摘要: 两种方式指定环境:java –jar -D spring.profiles.active=dev xxx.jarjava -jar xxx.jar --spring.profiles.active=prod application.ymlserver: port: 8082# 生产环境配置sprin 阅读全文

posted @ 2020-01-13 10:29 yaoyu 阅读(970) 评论(0) 推荐(0) 编辑

2018年1月27日

k8s命令

摘要: 编辑pod版本号等信息kubectl edit deployment ams-metric -n manage导出容器内容到文件docker export 1ceefea8d9ff > calc.tar加载tar到本地仓库docker load -i ams-access-1.0.PC5.tar 快 阅读全文

posted @ 2018-01-27 14:24 yaoyu 阅读(1991) 评论(1) 推荐(1) 编辑

上一页 1 ··· 3 4 5 6 7

导航