上一页 1 ··· 34 35 36 37 38 39 40 41 42 ··· 61 下一页
摘要: MappedByteBuffer是java nio引入的文件内存映射方案,读写性能极高。在NIO中主要用到普通的输入流,带缓冲的输入流,RandomAccessFile和MappedByteBuffer。 @Test public void mmapTest() throws Exception { 阅读全文
posted @ 2022-07-08 14:24 VipSoft 阅读(1042) 评论(0) 推荐(0)
摘要: System.out.printf 格式化输出16进制内容 @Test public void printTest() throws Exception { String str = "安倍晋三已无生命体征!!"; print(str.getBytes()); } public static voi 阅读全文
posted @ 2022-07-08 14:03 VipSoft 阅读(325) 评论(0) 推荐(0)
摘要: HeapByteBuffer 在jvm堆上面的一个buffer,底层的本质是一个数组 由于内容维护在jvm里,所以把内容写进buffer里速度会快些;并且,可以更容易回收 DirectByteBuffer 底层的数据其实是维护在操作系统的内存中,而不是jvm里,DirectByteBuffer里维护 阅读全文
posted @ 2022-07-07 12:42 VipSoft 阅读(333) 评论(0) 推荐(0)
摘要: xml 如下: <?xml version="1.0" encoding="UTF-8"?> <POOR_IN200901UV ITSVersion="XML_1.0" xmlns="urn:hl7-org:v3" xmlns:xsi="http://www.w3.org/2001/XMLSchem 阅读全文
posted @ 2022-07-05 19:10 VipSoft 阅读(559) 评论(0) 推荐(0)
摘要: 在项目启动的时候需要做一些初始化的操作,比如初始化线程池,提前加载好加密证书等。可以通过实现Runner接口完成以上工作。 两者只是参数上的区别 方式一 实现 CommandLineRunner 接口 @Component public class VipSoftServerRunner imple 阅读全文
posted @ 2022-07-04 15:40 VipSoft 阅读(117) 评论(0) 推荐(0)
摘要: Mac 播放 swf Flash文件 选中文件,Command+i 打开简介 不过文件图标还没变过来。重新下明天再看看 阅读全文
posted @ 2022-07-01 23:49 VipSoft 阅读(206) 评论(0) 推荐(0)
摘要: Flash已不再支持,swf 文件彻底打不开了(一些教程),通过PD虚拟,安装 windows 操作系统在里在装了 flash 播放器使用了一段时间,始终不方便。于是找到了如下方法 首先安装:Adobe Animate 软件(官网下载安装,先装了个Creative Cloud,再装Animate的, 阅读全文
posted @ 2022-07-01 23:36 VipSoft 阅读(1347) 评论(0) 推荐(0)
摘要: C# 和 java 基本数据类型 C#类型 java类型 描述 默认值 bool boolean 布尔值 False byte byte 8 位无符号整数 0 char char 16 位 Unicode 字符 '\0' decimal BigDecimal(非基本) 128 位精确的十进制值,28 阅读全文
posted @ 2022-07-01 08:58 VipSoft 阅读(366) 评论(0) 推荐(0)
摘要: Linux CentOS 7 安装 Kafka 2.8.2 - 单机版 & JDK 11 & 切换 JDK版本 & cmak SpringBoot Kafka SSL接入点PLAIN机制收发消息 KafkaProducerConfig package com.example.springboot.c 阅读全文
posted @ 2022-06-30 15:44 VipSoft 阅读(287) 评论(0) 推荐(0)
摘要: Linux CentOS 7 安装 Kafka 2.8.2 - 单机版 & JDK 11 & 切换 JDK版本 & cmak Kafka Config applycation.yml spring: # https://developer.aliyun.com/article/784990 kafk 阅读全文
posted @ 2022-06-30 15:43 VipSoft 阅读(448) 评论(0) 推荐(0)
摘要: Error Code : 1381You are not using binary logging show variables like '%log_bin%'; 在mysqld配置项下面加上log_bin=mysql_bin [mysqld] log-bin="C:/Program Files/ 阅读全文
posted @ 2022-06-30 09:29 VipSoft 阅读(333) 评论(0) 推荐(0)
摘要: 如图:我们将删除 id=2的数据,并恢复 SHOW BINARY LOGS; You are not using binary logging show binlog events in 'mysql-bin.000001' 导出删除日期范围内的binlog日志 #根据时间段 mysqlbinlog 阅读全文
posted @ 2022-06-30 09:26 VipSoft 阅读(533) 评论(0) 推荐(0)
摘要: 本来想网上下个软件处理下的,给我加了水印,不然就让我升会员,程序员都是薅人家羊毛,哪能被人家薅羊毛 1. 安装组件 (指定国内源,速度快些),带上版本号,最新版本会卡在 XXX(PEP 517) 上。 pip3 install opencv-python==3.4.9.31 -i https://p 阅读全文
posted @ 2022-06-23 11:00 VipSoft 阅读(191) 评论(0) 推荐(0)
摘要: JDK 实现 public class FutureTest { public static void main(String[] args) throws Exception { ExecutorService es = Executors.newFixedThreadPool(10); Futu 阅读全文
posted @ 2022-06-16 14:43 VipSoft 阅读(1346) 评论(0) 推荐(0)
摘要: POM <!-- https://mvnrepository.com/artifact/com.google.guava/guava --> <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> 阅读全文
posted @ 2022-06-16 13:39 VipSoft 阅读(159) 评论(0) 推荐(0)
摘要: 将 ECS 挂载 OSS 多Bucket ,进行文件存储后,发现PDF、图片在浏览器中访问URL,变成了下载,页不是预览。 1. 解决办法,文件类型 application/octet-stream 改成 application/pdf,但图片还是下载 2. 绑定自己的域中,【推荐】 https:/ 阅读全文
posted @ 2022-06-16 11:59 VipSoft 阅读(1726) 评论(0) 推荐(0)
摘要: Modules 把 Language level 调成 8 阅读全文
posted @ 2022-06-16 11:50 VipSoft 阅读(741) 评论(0) 推荐(0)
摘要: 如果线程中的执行时间过长,导致长时间被占用,可以通过新建一个子线程,来监控主线程的执行超时时间,如果超时了,通过子线程杀掉父线程 (主意,父线程被杀后,子线程还会活着) 子线程杀掉主线程 这个问题其实还是没有搞定。下面的代码只是发起了线程的中断,某一行代码执行结束后,不会执行后续的代码。但就这某一行 阅读全文
posted @ 2022-06-13 09:34 VipSoft 阅读(3349) 评论(0) 推荐(0)
摘要: 如果线程执行N久还没结束,就想把它杀掉,把线程留给其它任务使用。 思路:主线程执行时,开一个子线程来监控它,看是否执行完成。如果没有执行完成就把它干了,执行完了就不管。 package com.vipsoft.Thread; public class ThreadMain { public stat 阅读全文
posted @ 2022-06-10 14:42 VipSoft 阅读(211) 评论(0) 推荐(0)
摘要: ThreadPoolExecutor 介绍 简写: package com.vipsoft.Thread; import java.util.concurrent.*; import java.util.concurrent.atomic.AtomicInteger; public class Th 阅读全文
posted @ 2022-06-09 09:40 VipSoft 阅读(245) 评论(0) 推荐(0)
上一页 1 ··· 34 35 36 37 38 39 40 41 42 ··· 61 下一页