会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
yvioo
“你从没有相信过谁吧,这就是你孤身一人的原因”
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
18
19
20
21
22
23
24
25
26
···
70
下一页
2021年11月3日
SpringBoot整合Netty实现socket通讯简单demo
摘要: 依赖 <dependency> <groupId>io.netty</groupId> <artifactId>netty-all</artifactId> <version>4.1.42.Final</version> </dependency> 还用到了 <dependency> <groupI
阅读全文
posted @ 2021-11-03 11:40 yvioo
阅读(4982)
评论(11)
推荐(1)
2021年10月28日
Linux使用tar解压的时候去掉父级目录
摘要: 去除解压目录结构使用 --strip-components N 如: 压缩文件text.tar 中文件信息为 src/src1/src2/text.txt 运行 tar -zxvf text.tar --strip-components 1 结果:src1/src2/text.txt 如果运行 ta
阅读全文
posted @ 2021-10-28 15:02 yvioo
阅读(1735)
评论(0)
推荐(0)
docker安装artemis
摘要: Dockerfile # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed wi
阅读全文
posted @ 2021-10-28 13:18 yvioo
阅读(606)
评论(0)
推荐(0)
2021年10月25日
SpringBoot整合MQTT (使用官方demo)
摘要: 另一种方式(推荐):https://www.cnblogs.com/pxblog/p/17058417.html 依赖 <dependency> <groupId>org.eclipse.paho</groupId> <artifactId>org.eclipse.paho.client.mqttv
阅读全文
posted @ 2021-10-25 14:45 yvioo
阅读(7500)
评论(2)
推荐(1)
2021年10月20日
java -jar 配置参数写法说明和启动优化命令
摘要: java -Dxxx=test -jar xxx.jar (放在-jar之前) 属性名不区分大小写 取值:System.getProperty("xxx") spring的@value("${xxx}") java -jar xxx.jar value1=1 value2=2 (放在启动jar包之后
阅读全文
posted @ 2021-10-20 10:54 yvioo
阅读(4546)
评论(0)
推荐(0)
2021年10月12日
JS中使用reconnecting-websocket实现websocket断开自动重新连接
摘要: 这里用了第三方的js 官方地址:https://github.com/joewalnes/reconnecting-websocket 引入js reconnecting-websocket.min.js 或者 reconnecting-websocket.js 如果github访问慢 我也上传了一
阅读全文
posted @ 2021-10-12 09:38 yvioo
阅读(1546)
评论(0)
推荐(0)
2021年10月11日
JAVA实现根据图片生成缩略图、裁剪、压缩图片
摘要: 依赖(用来复制文件,可以根据自己的来) <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>2.8.0</version> </dependency> ImageScaleUt
阅读全文
posted @ 2021-10-11 14:43 yvioo
阅读(792)
评论(0)
推荐(0)
Windows系统CMD(DOS)命令bat脚本编写,含有中文编码处理
摘要: 如果bat文件里面有中文 就在开头加下面这个 不然中文编码会有问题 chcp 65001 复制文件(/y 表示不提示确认框,/-y 表示提示是否覆盖确认) echo "复制文件" copy /y D:\apache-zookeeper-3.6.3.tar.gz E:\logs\ echo 脚本执行完
阅读全文
posted @ 2021-10-11 10:03 yvioo
阅读(1302)
评论(0)
推荐(0)
ubantu电脑无法开机修复
摘要: 重启Ubuntu,随即长按F9进入grub菜单;在grub菜单中,选择recovery mode,回车确认;在Recovery Menu中,选择“Root Drop to root shell prompt”,回车确认;然后输入root密码,即可进入root shell界面 查找磁盘上大于20MB的
阅读全文
posted @ 2021-10-11 09:57 yvioo
阅读(574)
评论(0)
推荐(0)
2021年10月8日
JAVA获得websocket请求路径前缀
摘要: /** * 获得websocket请求路径前缀(线程安全 速度相对慢) * @param request * @return */ public static String getWebsocketUrl(HttpServletRequest request) { StringBuffer buff
阅读全文
posted @ 2021-10-08 17:13 yvioo
阅读(663)
评论(0)
推荐(0)
上一页
1
···
18
19
20
21
22
23
24
25
26
···
70
下一页
公告