上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页
摘要: // 查找某内容存在次数 public static int searchEleNum(String str,String targetEle) { if( str.indexOf(targetEle) == -1 ) { return 0; }else { return 1 + searchEle 阅读全文
posted @ 2020-04-24 10:29 ToDarcy 阅读(4928) 评论(0) 推荐(0) 编辑
摘要: import time import pymysql from elasticsearch import Elasticsearch from elasticsearch import helpers ES = [ 'http://ip:9200' ] es = Elasticsearch(ES, 阅读全文
posted @ 2020-04-17 16:54 ToDarcy 阅读(1430) 评论(0) 推荐(0) 编辑
摘要: POST /索引/标签/_delete_by_query?pretty { "query" : { "match_all" : {} } } 阅读全文
posted @ 2020-04-16 12:01 ToDarcy 阅读(5544) 评论(0) 推荐(0) 编辑
摘要: 控制器 // 批量插入导出记录 int[] list = StringProcesser.toIntArray(idStr); List<ExportResource> ERLists = new ArrayList<>(); for (int id : list) { ExportResource 阅读全文
posted @ 2020-04-09 15:51 ToDarcy 阅读(1720) 评论(0) 推荐(0) 编辑
摘要: 时间转换为时间戳: /* * 将时间转换为时间戳 */ public static String dateToStamp(String s) throws ParseException{ String res; SimpleDateFormat simpleDateFormat = new Simp 阅读全文
posted @ 2020-04-08 14:38 ToDarcy 阅读(248) 评论(0) 推荐(0) 编辑
摘要: server { listen 80; server_name A.com; location /{ proxy_pass https://B.com/asi/; } location ^~/web/ { proxy_pass https://B.com/web/; } } 阅读全文
posted @ 2020-03-31 10:13 ToDarcy 阅读(879) 评论(0) 推荐(0) 编辑
摘要: 经常遇到 txt 文件在 Mac 上显示乱码, 如图所示. 解决 1. 单个乱码文件的转换 使用 Shell 的 iconv 命令来转换文件编码, 其语法是: iconv -f encoding -t encoding sourcefile > destinationfile 例如, 想把 GB18 阅读全文
posted @ 2020-03-30 11:18 ToDarcy 阅读(1058) 评论(0) 推荐(0) 编辑
摘要: #vim /etc/ssh/sshd_config 找到下面两行 #ClientAliveInterval 0 #ClientAliveCountMax 3 去掉注释,改成 ClientAliveInterval 30 ClientAliveCountMax 86400 这两行的意思分别是 1、客户 阅读全文
posted @ 2020-03-27 15:24 ToDarcy 阅读(569) 评论(0) 推荐(0) 编辑
摘要: server { listen 80 default_server; server_name _; return 500; } 或者 server { listen 80 default_server; server_name _; rewrite ^(.*) http://todarct.com 阅读全文
posted @ 2020-03-23 15:42 ToDarcy 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 局域网中搭建共享MySQL数据库比较适合学习阶段的同学,适合搭建平台进行测试,也方便共同管理数据库,但是还是有较大的弊端,本文的讲解方法只能在局域网中进行搭建。 一、配置单个电脑访问共享数据库需要注意的是: 几台电脑的ip地址需要在同一个段安装的有MySQL服务navicat客户端软件不强制,只是建 阅读全文
posted @ 2020-03-20 09:51 ToDarcy 阅读(2296) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页