Windows编程-异步IO-1- 当我们读取一个文件时,一般情况下,线程是阻塞的,也就是当前线程在等待文件读取操作结束,也就是这个线程只用来读文件,等读完了再返回。这种方式叫做同步IO。 Windows在系统底层为用户实现了另一种高效的机制,叫做重叠I/O,又称作异步I/O。异步I/O操作提供了一 ...
Spring Boot 整合Swagger2 依赖导入 <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.9.2</version> </depend ...
分类:
编程语言 时间:
2021-01-25 10:42:42
阅读次数:
0
Redis主从+Sentinel搭建文档 1、单机redis安装 wget http://download.redis.io/releases/redis-5.0.3.tar.gzcd /usr/local/tar -zxvf redis-5.0.3.tar.gzmv redis-5.0.3/ re ...
分类:
其他好文 时间:
2021-01-22 11:52:28
阅读次数:
0
//建立文件夹 File f=new File("user"); System.out.println(f.createNewFile()); //建立文件 File wj = new File("user.txt"); File wj2=new File(".","user2.txt"); Sys ...
分类:
其他好文 时间:
2021-01-21 10:47:05
阅读次数:
0
package com.example.delete;import java.io.File;public class DeleteDirectory { /** * 删除空目录 * @param dir 将要删除的目录路径 */ private static void doDeleteEmptyD ...
分类:
其他好文 时间:
2021-01-21 10:32:07
阅读次数:
0
github上面的原问题链接:https://github.com/kubernetes/kubernetes/issues/98079 按照他说的, 我新建了一个crd,yaml文件内容如下: apiVersion: apiextensions.k8s.io/v1 kind: CustomReso ...
分类:
其他好文 时间:
2021-01-20 12:18:15
阅读次数:
0
1、数据库准备 1、192.168.8.162 test1主 2、192.168.8.134 test1从 3、192.168.8.176 test1从 4、192.168.8.162 test2主 5、192.168.8.134 test2从 6、192.168.8.176 test2从 2、准备 ...
分类:
数据库 时间:
2021-01-20 11:42:43
阅读次数:
0
转自:https://www.pianshen.com/article/58601308015/ springboot配置MVC的官网信息:https://docs.spring.io/spring-boot/docs/2.2.1.RELEASE/reference/htmlsingle/#boot ...
分类:
编程语言 时间:
2021-01-19 12:26:09
阅读次数:
0
使用时在引导类用@bean注入 在需要用的地方@AutoWired注入 package com.changgou.order.config; import com.alibaba.fastjson.JSON; import org.springframework.core.io.ClassPathR ...
分类:
其他好文 时间:
2021-01-19 12:17:05
阅读次数:
0
原文:How to Build a Multiplayer (.io) Web Game, Part 1 GitHub: https://github.com/vzhou842/example-.io-game 深入探索一个 .io 游戏的 Javascript client-side(客户端)。 ...
分类:
Web程序 时间:
2021-01-19 11:49:17
阅读次数:
0