企业分布式微服务云SpringCloud SpringBoot mybatis (十四)服务注册(consul) 一、consul 简介 consul 具有以下性质: 服务发现:consul通过http 方式注册服务,并且服务与服务之间相互感应。 服务健康监测 key/value 存储 多数据中心... ...
分类:
编程语言 时间:
2018-09-22 16:54:26
阅读次数:
164
一、interval和timer:用于定时产生数据 interval说明:它接收一个数值类型的参数,表示产生数据的间隔时间,单位为毫秒,返回的Observable对象就按照这个时间间隔来产生递增序列,从0开始,但是有限制。 timer说明:第一个参数若为数值则单位为毫秒,表示间隔时间,产生一个数据0 ...
分类:
Web程序 时间:
2018-09-21 16:58:05
阅读次数:
726
private void timer2_Tick(object sender, EventArgs e) { timer1.Interval = 200; AutoSideHideOrShow(); } void AutoSideHideOrShow() { ... ...
H Traveling on the Axis 作者: 浙江大学竞赛命题组 单位: ACMICPC 时间限制: 500 ms 内存限制: 64 MB 代码长度限制: 32 KB 传送门 BaoBao is taking a walk in the interval [0,n] on the numb ...
分类:
其他好文 时间:
2018-09-19 21:53:26
阅读次数:
191
1、 获取当前日期 SELECT NOW(),CURDATE(),CURTIME() 结果类似: 2、 获取前一天 SELECT DATE_SUB(CURDATE(),INTERVAL 1 DAY); 当前日期2018-09-17 结果: 3、 获取后一天 SELECT DATE_SUB(CURDA ...
分类:
数据库 时间:
2018-09-17 11:37:30
阅读次数:
14664
1.原始 marquee 2.自定义 marquee .tops { color: #fff; height: 23px; margin: 0 0 0 20px; min-height: 23px; overflow: hidden; } .tops a { float: left; } .tops ...
分类:
其他好文 时间:
2018-09-15 18:44:32
阅读次数:
588
Prometheus架构描述 Prometheus 是一个非常优秀的监控工具。准确的说,应该是监控方案。Prometheus 提供了监控数据搜集、存储、处理、可视化和告警一套完整的解决方案 Prometheus 最大的亮点和先进性是它的多维数据模型 Prometheus Server Prometh ...
分类:
其他好文 时间:
2018-09-14 16:04:17
阅读次数:
532
function aa() { var totalSecond = 11111 - Date.parse(new Date())/1000; var interval = setInterval(function () { // 秒数 var second = totalSecond; // 天数位 ...
分类:
其他好文 时间:
2018-09-14 14:33:18
阅读次数:
141
注:服务里的timer System.Timers.Timer time=new System.Timers.Timer(); time.Interval = 3000; //设置计时器事件间隔执行时间 time.Elapsed += new System.Timers.ElapsedEventHa ...
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <style> #container{ text-align: center; } </style> </head><body> <di ...
分类:
其他好文 时间:
2018-09-11 00:59:40
阅读次数:
151