摘要:
自定义函数接口 @FunctionalInterface //可以检测接口是否是一个函数式接口,不满足条件时编译失败 public interface StartKafKaMongoTran<In1,In2,Out> { Out start(In1 ags1,In2 ags2); // defaul
阅读全文
posted @ 2020-03-19 21:32
lshan
阅读(1351)
推荐(0)
摘要:
方式一: /** * DateTimeFormatter java 8 线程安全 * @throws Exception */ @Test public void testTimeDiff() throws Exception { // DateTimeFormatter formatter = D
阅读全文
posted @ 2020-03-14 17:56
lshan
阅读(1496)
推荐(0)
摘要:
https://www.runoob.com/mongodb/mongodb-operators.html 1.模糊查询:
阅读全文
posted @ 2020-03-13 11:32
lshan
阅读(149)
推荐(0)
摘要:
参考:https://blog.csdn.net/skylibiao/article/details/81195219
阅读全文
posted @ 2020-02-25 21:23
lshan
阅读(159)
推荐(0)
摘要:
List<T> list = new LinkedList<>(); Queue<String> queue = new LinkedList<String>(); queue.offer("a"); queue.offer("b"); offer,add 区别: 一些队列有大小限制,因此如果想在一
阅读全文
posted @ 2020-02-25 20:54
lshan
阅读(1009)
推荐(0)
摘要:
转载原文:https://blog.csdn.net/weixin_43533825/article/details/96708590 栈:LIFO(后进先出),自己实现一个栈,要求这个栈具有push()、pop()(返回栈顶元素并出栈)、peek() (返回栈顶元素不出栈)、isEmpty()这些
阅读全文
posted @ 2020-02-25 19:29
lshan
阅读(422)
推荐(0)
摘要:
原文:https://www.runoob.com/java/java-regular-expressions.html 概要: 案例1:(文本中提取用户信息) 案例2: 文件后缀匹配 基本讲解 ~~~~~ 案例:(文本中提取用户信息) Pattern emailPattern = Pattern.
阅读全文
posted @ 2020-02-16 15:17
lshan
阅读(262)
推荐(0)
摘要:
1. ps -ef | grep zookeeper | grep -v grep | awk '{print $2}' | xargs kill -9 kill $(ps aux | grep process_name | grep -v grep| tr -s ' '| cut -d ' ' -
阅读全文
posted @ 2020-01-19 15:23
lshan
阅读(3420)
推荐(0)
摘要:
Step by step for crontab stop setup Sea@sea:/etc/lazada$ sudo crontab -e 1.Edit cron job 0 */6 * * * curl -X POST -d @/etc/lzd/lzd_tracking.txt http:/
阅读全文
posted @ 2020-01-17 18:46
lshan
阅读(333)
推荐(0)
摘要:
1)在/home/sea/bin目录下创建脚本dt.sh [sea@hadoop102 bin]$ vim dt.sh 2)在脚本中编写如下内容: #!/bin/bash log_date=$1 for i in hadoop102 hadoop103 hadoop104 do ssh -t $i
阅读全文
posted @ 2020-01-15 17:40
lshan
阅读(158)
推荐(0)