上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 58 下一页
摘要: 1.start()方法来启动线程,真正实现了多线程运行。这时无需等待run方法体代码执行完毕,可以直接继续执行下面的代码;通过调用Thread类的start()方法来启动一个线程, 这时此线程是处于就绪状态, 并没有运行,等待分配到CPU后继续执行未完的run()方法。 这里方法run()称为线程体 阅读全文
posted @ 2022-08-01 15:00 VipSoft 阅读(812) 评论(0) 推荐(0)
摘要: Future的局限性,它没法直接对多个任务进行链式、组合等处理,而CompletableFuture是对Future的扩展和增强。CompletableFuture实现了Future接口,并在此基础上进行了丰富的扩展,增加了异步回调、流式处理、多个Future组合处理的能力,完美弥补了Future的 阅读全文
posted @ 2022-08-01 13:05 VipSoft 阅读(215) 评论(0) 推荐(0)
摘要: ByteBuffer 字节缓冲区 MappedByteBuffer中“put”和“force”的区别是什么 put()将数据存储在缓冲区中,force()通知操作系统将缓冲区刷新到磁盘。 put() 后,打开文件,也能看到文件中有数据,这是因为没有绕过操作系统,看到的是操作系统文件缓存里的内容,不是 阅读全文
posted @ 2022-08-01 08:58 VipSoft 阅读(338) 评论(0) 推荐(0)
摘要: 小端存储:较低的有效字节存放在较低的存储器地址,较高的字节存放在较高的存储器地址; 大端存储:较低的有效字节存放在较高的存储器地址,较高的字节存放在较低的存储器地址。 & 计算操作数的逻辑按位“与”: 两个同为1 才是1 0&0=00&1=01&1=11&0=0 | 计算操作数的逻辑按位“或”: 两 阅读全文
posted @ 2022-07-21 14:46 VipSoft 阅读(370) 评论(0) 推荐(0)
摘要: Java中的事件机制的参与者有3种角色: 1. event object:就是事件产生时具体的“事件”,用于listener的相应的方法之中,作为参数,一般存在于listerner的方法之中2. event source:具体的接受事件的实体,比如说,你点击一个button,那么button就是ev 阅读全文
posted @ 2022-07-14 10:26 VipSoft 阅读(111) 评论(0) 推荐(0)
摘要: 常用方法: public class FileHelper { /// <summary> /// 用得比较多 /// </summary> /// <param name="msg"></param> public static void WriteAppend(string msg) { Sys 阅读全文
posted @ 2022-07-13 14:26 VipSoft 阅读(289) 评论(0) 推荐(0)
摘要: Chrome 英文翻译插件,沙拉查词 阅读全文
posted @ 2022-07-12 17:27 VipSoft 阅读(248) 评论(0) 推荐(0)
摘要: dom4j selectNodes 取不到值 因为XML带有命名空间 HL7 Dom4j 保存XML String xmlPath = "D:\\BS004.xml"; String savePath = "D:\\BS004_save.xml"; SAXReader reader = new SA 阅读全文
posted @ 2022-07-12 13:43 VipSoft 阅读(246) 评论(0) 推荐(0)
摘要: MappedByteBuffer是java nio引入的文件内存映射方案,读写性能极高。在NIO中主要用到普通的输入流,带缓冲的输入流,RandomAccessFile和MappedByteBuffer。 @Test public void mmapTest() throws Exception { 阅读全文
posted @ 2022-07-08 14:24 VipSoft 阅读(1011) 评论(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 阅读(300) 评论(0) 推荐(0)
摘要: HeapByteBuffer 在jvm堆上面的一个buffer,底层的本质是一个数组 由于内容维护在jvm里,所以把内容写进buffer里速度会快些;并且,可以更容易回收 DirectByteBuffer 底层的数据其实是维护在操作系统的内存中,而不是jvm里,DirectByteBuffer里维护 阅读全文
posted @ 2022-07-07 12:42 VipSoft 阅读(316) 评论(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 阅读(546) 评论(0) 推荐(0)
摘要: 在项目启动的时候需要做一些初始化的操作,比如初始化线程池,提前加载好加密证书等。可以通过实现Runner接口完成以上工作。 两者只是参数上的区别 方式一 实现 CommandLineRunner 接口 @Component public class VipSoftServerRunner imple 阅读全文
posted @ 2022-07-04 15:40 VipSoft 阅读(100) 评论(0) 推荐(0)
摘要: Mac 播放 swf Flash文件 选中文件,Command+i 打开简介 不过文件图标还没变过来。重新下明天再看看 阅读全文
posted @ 2022-07-01 23:49 VipSoft 阅读(191) 评论(0) 推荐(0)
摘要: Flash已不再支持,swf 文件彻底打不开了(一些教程),通过PD虚拟,安装 windows 操作系统在里在装了 flash 播放器使用了一段时间,始终不方便。于是找到了如下方法 首先安装:Adobe Animate 软件(官网下载安装,先装了个Creative Cloud,再装Animate的, 阅读全文
posted @ 2022-07-01 23:36 VipSoft 阅读(1324) 评论(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 阅读(350) 评论(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 阅读(272) 评论(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 阅读(433) 评论(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 阅读(321) 评论(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 阅读(510) 评论(0) 推荐(0)
上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 58 下一页