随笔分类 -  JAVA

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页
JAVA
摘要:首先 LinkedBlockingQueue 是线程安全的阻塞队列,LinkedBlockingQueue实现的生产者和消费者模型 阻塞队列与我们平常接触的普通队列(LinkedList或ArrayList等)的最大不同点,在于阻塞队列支出阻塞添加和阻塞删除方法。 阻塞添加:所谓的阻塞添加是指当阻塞 阅读全文
posted @ 2022-06-07 10:34 VipSoft 阅读(379) 评论(0) 推荐(0) 编辑
摘要:https://www.jianshu.com/p/cc2281b1a6bc https://blog.csdn.net/tonywu1992/article/details/83419448 继承关系图 /** * 节点类,用于存储数据 */ static class Node<E> { E it 阅读全文
posted @ 2022-06-06 10:11 VipSoft 阅读(26) 评论(0) 推荐(0) 编辑
摘要:服务端接口代码如下: /** * 上传数据+实体信息 */ @RequestMapping("/upload") public String doctorAnalysis(HttpServletRequest request, @RequestParam(value = "userinfo") St 阅读全文
posted @ 2022-05-31 17:01 VipSoft 阅读(1130) 评论(0) 推荐(0) 编辑
摘要:为什么浏览器中有些文件点击后是预览,有些是下载:https://www.cnblogs.com/vipsoft/p/18267174 SpringBoot 接口输出文件流 & Vue 下载文件流,获取 Header 中的文件名 https://www.cnblogs.com/vipsoft/p/16 阅读全文
posted @ 2022-05-27 16:09 VipSoft 阅读(4118) 评论(0) 推荐(0) 编辑
摘要:几种数据格式的表示方式1.普通的值(数字,字符串,布尔) expire: 60 # 方便测试,设成 60 秒 2.对象、Map (属性和值) (键值对) 不支持tab,使用空格 vipsoft: api-url: http://xxxx file-path: /temp 3.数组 (List、Set 阅读全文
posted @ 2022-05-24 12:11 VipSoft 阅读(2127) 评论(0) 推荐(0) 编辑
摘要:1.如何判断线程池所有任务是否执行完毕 package com.vipsoft.web; import org.junit.jupiter.api.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.sp 阅读全文
posted @ 2022-05-11 10:27 VipSoft 阅读(131) 评论(0) 推荐(0) 编辑
摘要:将目录下的N个日志文件读写到一个文件中。 @Test void verification() throws Exception { File f = new File("D:\\Logs"); String wPath = "D:\\\\Logs\\0.logsAll.log"; File wf = 阅读全文
posted @ 2022-05-10 11:14 VipSoft 阅读(294) 评论(0) 推荐(0) 编辑
摘要:& 0xFF 取低8位 @Test void byteTest() { byte hex1 = (byte) 127; byte hex2 = (byte) 383; byte hex3 = (byte) 0x7F; RandomAccessFile writeFile = null; try { 阅读全文
posted @ 2022-05-07 11:17 VipSoft 阅读(277) 评论(0) 推荐(0) 编辑
摘要:JAVA CRC32 /** * CRC-32 * * <table width="400px" border="1" cellpadding="0" cellspacing="0"> * <tr> * <th>名称</th> * <th>多项式</th> * <th>初始值</th> * <th> 阅读全文
posted @ 2022-05-06 23:12 VipSoft 阅读(306) 评论(0) 推荐(0) 编辑
摘要:JAVA CRC16 /** * CRC-16 * * <table width="400px" border="1" cellpadding="0" cellspacing="0"> * <tr> * <th>名称</th> * <th>多项式</th> * <th>初始值</th> * <th> 阅读全文
posted @ 2022-05-06 23:11 VipSoft 阅读(230) 评论(0) 推荐(0) 编辑
摘要:Java CRC8 /** * CRC-8 * * <table width="400px" border="1" cellpadding="0" cellspacing="0"> * <tr> * <th>名称</th> * <th>多项式</th> * <th>初始值</th> * <th>异或 阅读全文
posted @ 2022-05-06 23:09 VipSoft 阅读(420) 评论(0) 推荐(0) 编辑
摘要:ECS 挂载 OSS,等同于在ECS 上使用内网的 Bucket 域名,不需要收取流量费用,减少接口代码的编写。 CentOS系统 安装 wget http://gosspublic.alicdn.com/ossfs/ossfs_1.80.6_centos7.0_x86_64.rpmyum inst 阅读全文
posted @ 2022-04-18 14:39 VipSoft 阅读(362) 评论(0) 推荐(0) 编辑
摘要:磁盘挂载后,启动报错 Unable to create tempDir. java.io.tmpdir is set to /tmp [2022-03-30 17:12:06.596] WARN [main] AbstractApplicationContext.java:558 - Excepti 阅读全文
posted @ 2022-03-30 17:25 VipSoft 阅读(3710) 评论(0) 推荐(0) 编辑
摘要:Dependencies unknown 由父POM 托管 <properties> <boot-admin.version>2.3.0</boot-admin.version> </properties> <dependencyManagement> <dependencies> <depende 阅读全文
posted @ 2022-03-30 12:43 VipSoft 阅读(61) 评论(0) 推荐(0) 编辑
摘要:1. GlobalExceptionHandler package com.vipsoft.web.boot.exception; import com.vipsoft.web.boot.utils.Result; import org.slf4j.Logger; import org.slf4j. 阅读全文
posted @ 2022-03-25 09:12 VipSoft 阅读(38) 评论(0) 推荐(0) 编辑
摘要:应用系统在碰到运行异常等情况时,发送预警消息@群内相关人员,可以及时发出问题,观察对问题的响应情况 1. 创建一个群(可以是公司内部群) 2. 添加机器人 自定义机器人安全设置: https://open.dingtalk.com/document/robots/customize-robot-se 阅读全文
posted @ 2022-03-24 10:07 VipSoft 阅读(233) 评论(0) 推荐(0) 编辑
摘要:1. Docker开启远程访问,注意端口不要用默认的,防止被攻击 [root@localhost ~]# vi /usr/lib/systemd/system/docker.service 修改 # 修改该行-注意端口不要用默认的 2375 # ExecStart=/usr/bin/dockerd 阅读全文
posted @ 2022-03-09 17:55 VipSoft 阅读(341) 评论(0) 推荐(0) 编辑
摘要:删除已有Docker sudo yum remove docker \ docker-ce \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docke 阅读全文
posted @ 2022-03-09 15:21 VipSoft 阅读(65) 评论(0) 推荐(0) 编辑
摘要:将 vipsoft-gateway-1.0.0 替换成自己的包名 start-gateway-dev.sh ```bash nohup java -Duser.timezone=GMT+08 -Dfile.encoding=utf-8 -Xms512M -Xmx1024M -Xss256k -Xmn 阅读全文
posted @ 2022-03-01 19:45 VipSoft 阅读(66) 评论(0) 推荐(0) 编辑
摘要:PostMan 客户端调用部分见,断点续传(上传)C#版 1. 客户每次上传前先获取一下当前文件已经被服务器接受了多少 2. 上传时设定偏移量,跳过服务器已收到的长度 @SpringBootTest public class FileTests { @Test void seekTest() { t 阅读全文
posted @ 2022-03-01 18:07 VipSoft 阅读(162) 评论(0) 推荐(0) 编辑

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页