上一页 1 2 3 4 5 6 7 8 9 ··· 21 下一页
摘要: 删除es索引,自带的仅支持abc*形式的索引.如果想删除*abc*类似的就无能为力了,写个shell脚本实现下 #!/bin/bash for i in $(curl localhost:9200/_cat/indices?v | grep '*abc*' -o | awk '{print $3}' 阅读全文
posted @ 2020-10-10 09:51 林宇风 阅读(907) 评论(0) 推荐(0) 编辑
摘要: 集群之间传递文件需要输入密码,不方便.可以配置SSH免登 生成秘钥 ssh-keygen -t rsa 查看生成的密钥 [root@localhost hadoop]# ll ~/.ssh total 8 -rw . 1 root root 1675 Jan 6 22:04 id_rsa -rw-r 阅读全文
posted @ 2020-09-30 09:36 林宇风 阅读(138) 评论(0) 推荐(0) 编辑
摘要: import javax.crypto.Cipher; import javax.crypto.SecretKey; import javax.crypto.SecretKeyFactory; import javax.crypto.spec.DESKeySpec; import java.secu 阅读全文
posted @ 2020-09-23 16:08 林宇风 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 使用SpringBoot进行单元测试 依赖: <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> <scope>test</scope> </dependency> 阅读全文
posted @ 2020-09-23 15:55 林宇风 阅读(169) 评论(0) 推荐(0) 编辑
摘要: /** * Copyright (c) 2005-2009 springside.org.cn * <p> * Licensed under the Apache License, Version 2.0 (the "License"); * <p> * $Id: SpringContextHold 阅读全文
posted @ 2020-09-18 09:55 林宇风 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 使用fiddler抓包,有的http请求抓不到数据显示443,很费解!但是有的就可以,偶遇如下解决方案,试了下解决了。道声谢!!! 前提装好fiddler配置好代理,然后安装好证书 找到右侧选项卡: FiddlerScript > Go to > 下拉选择 OnBeforeRequest,把下边代码 阅读全文
posted @ 2020-09-18 09:21 林宇风 阅读(5701) 评论(0) 推荐(1) 编辑
摘要: import java.io.*; import java.util.*; public class FileReadUtil { public static List<String> ReadFile(String file) { List<String> list = new ArrayList 阅读全文
posted @ 2020-09-07 10:32 林宇风 阅读(702) 评论(0) 推荐(0) 编辑
摘要: 1. redis-cli 命令操作帮助说明 C:\Program Files\Redis>redis-cli.exe --help redis-cli 3.2.100 Usage: redis-cli [OPTIONS] [cmd [arg [arg ...]]] -h <hostname> Ser 阅读全文
posted @ 2020-09-03 21:13 林宇风 阅读(1926) 评论(0) 推荐(0) 编辑
摘要: 原文地址: https://www.cnblogs.com/gmq-sh/p/5942065.html /** * 根据属性名获取属性值 * */ private Object getFieldValueByName(String fieldName, Object o) { try { Strin 阅读全文
posted @ 2020-09-03 21:03 林宇风 阅读(5235) 评论(0) 推荐(0) 编辑
摘要: SQL Server: SELECT TOP 10 * FROM T_USER ORDER BY NEWID() MySQL: SELECT * FROM T_USER ORDER BY RAND() LIMIT 10 参考: https://blog.csdn.net/heqiang000/art 阅读全文
posted @ 2020-09-03 20:43 林宇风 阅读(510) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 21 下一页