会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
博客园
首页
私信博主
显示目录
隐藏目录
管理
Mr.Sharp
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
下一页
2020年11月29日
java中lamda表达式用法
摘要: map-> list Map<String, Object> map = new HashMap<>(); List<String> list = new ArrayList<>(); map.forEach((k, v) -> { list.add(v.toString()); }); list-
阅读全文
posted @ 2020-11-29 09:43 MrSharp
阅读(137)
评论(0)
推荐(0)
2020年11月26日
es聚合查询语法
摘要: { "size": 0, "query": { "bool": { "filter": [ { "range": { "@timestamp": { "gte": 1596572166943, "lte": 1596593766943, "format": "epoch_millis" } } },
阅读全文
posted @ 2020-11-26 12:49 MrSharp
阅读(503)
评论(0)
推荐(0)
2020年11月17日
java中使用Process执行linux命令
摘要: 代码如下 BufferedReader reader = null; String cmd = "netstat -anp|grep :8080";//命令中有管道符 | 需要如下执行命令 Process process = Runtime.getRuntime().exec(new String[
阅读全文
posted @ 2020-11-17 15:30 MrSharp
阅读(1463)
评论(0)
推荐(0)
nio实现文件夹内容的监听
摘要: 参考的博客 package com.jp.filemonitor; import java.io.IOException; import java.nio.file.FileSystems; import java.nio.file.Path; import java.nio.file.Paths;
阅读全文
posted @ 2020-11-17 15:24 MrSharp
阅读(258)
评论(0)
推荐(0)
git 回滚版本
摘要: 方法一、(回滚到原来的版本) 1、在gitlab上找到要恢复的版本号,如: bbdca96 2、在客户端执行如下命令(执行前,先将本地代码切换到对应分支): git reset --hard bbdca96 3、强制push到对应的远程分支(如提交到develop分支) git push -f -u
阅读全文
posted @ 2020-11-17 15:20 MrSharp
阅读(1263)
评论(0)
推荐(1)
2020年10月29日
mysql批量修改某一列的值为另外的值
摘要: sql语句 UPDATE tb_info SET org_id = 2170 WHERE org_id = 815
阅读全文
posted @ 2020-10-29 21:54 MrSharp
阅读(971)
评论(0)
推荐(0)
2020年10月10日
tomcat9启动报错too low setting for -Xss
摘要: 在tomcat下部署war包启动时报错,关键错误信息如下: Caused by: java.lang.IllegalStateException: Unable to complete the scan for annotations for web application [] due to a
阅读全文
posted @ 2020-10-10 14:33 MrSharp
阅读(1534)
评论(0)
推荐(0)
2020年9月8日
java读取文本文件
摘要: 很久没用都忘记了,记录一下:public static String readFileContent(String fileName) { File file = new File(fileName); BufferedReader reader = null; StringBuilder buil
阅读全文
posted @ 2020-09-08 13:01 MrSharp
阅读(178)
评论(0)
推荐(0)
2020年9月5日
storm提交拓扑报错processing getcomponentpendingprofileactions
摘要: storm提交新的拓扑,拓扑能提交成功,但是在UI界面查看时每个bolt报错Thrift.processing getComponentPendingProfileActions异常。 原因:storm中worker被其他拓扑占用完了,没有worker分配给新的拓扑导致该异常。 解决方案:kill掉
阅读全文
posted @ 2020-09-05 15:26 MrSharp
阅读(207)
评论(0)
推荐(0)
2020年8月29日
linux查看和修改时间
摘要: 查看时间: # date Fri Jan 11 18:04:10 CST 2020设置时间 # date -s "19:20:30"设置日期+时间 # date -s "2019-01-11 14:21:30"时间要用引号将时间写入bois # hwclock -w
阅读全文
posted @ 2020-08-29 21:36 MrSharp
阅读(353)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
下一页
公告