摘要: 这里使用了delayed 来实现延迟队列。 1. 定义函数接口 @FunctionalInterface public interface EventFunction { void apply(); } 这个是用于执行函数,Java自带的有 Consumer 和 Function 等其他,因为我这边 阅读全文
posted @ 2023-03-11 00:36 vitalq 阅读(156) 评论(0) 推荐(0) 编辑
摘要: GitHub教程:https://github.com/nodesource/distributions 安装说明 Node.js v18.x: # Using Ubuntu curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bas 阅读全文
posted @ 2022-08-10 11:52 vitalq 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 当前系统环境: CentOS Linux release 7.5.1804 (Core) 如果已经有过docker可执行以下命令卸载 $ yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker 阅读全文
posted @ 2019-01-29 16:31 vitalq 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 今天看到了一篇文章, 讲解如何手写HashMap, 不过我看了一下问题多多, 在这里重新写一个 首先定义接口: public interface VMap<K, V> { V put(K key, V value); V get(K key); Integer size(); interface E 阅读全文
posted @ 2018-09-09 22:51 vitalq 阅读(412) 评论(0) 推荐(0) 编辑
摘要: 1.使用MapperFactory作为单例 2.使用BoundMapperFacade可避免重复查找映射策略 官方资料 : http://orika-mapper.github.io/orika-docs/performance-tuning.html 阅读全文
posted @ 2018-08-08 17:23 vitalq 阅读(1401) 评论(0) 推荐(0) 编辑
摘要: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>2.3.1</version> <configuration> <archive> <add 阅读全文
posted @ 2018-01-16 17:29 vitalq 阅读(710) 评论(0) 推荐(0) 编辑
摘要: 首先,登录mysql,输入命令: use mysql grant all privileges on *.* to root@"%" identified by "密码"; flush privileges; root是账户名称 阅读全文
posted @ 2017-08-22 15:29 vitalq 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 1、把 mysql-5.7.19-winx64.zip 压缩文件解压到 C:\MySQL\ 目录下;2、在 C:\MySQL\ 目录下新建 my.ini 配置文件;3、用文本编辑器或其他编辑器打开 my.ini 文件,把以下代码复制粘贴进去,保存退出; #代码开始 [Client] #设置3306端 阅读全文
posted @ 2017-08-19 19:52 vitalq 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 原因:缺少VC++2013运行环境 解决:下载该环境即可 微软下载地址:https://www.microsoft.com/zh-cn/download/details.aspx?id=40784 网盘下载地址:https://t.cn/RCql19d 阅读全文
posted @ 2017-08-19 19:48 vitalq 阅读(6580) 评论(0) 推荐(0) 编辑
摘要: 第一种方式: 设置硬件时间 hwclock --set --date="08/08/2017 18:18:00" 硬件时钟与系统时钟同步 hwclock --hctosys 第二种方式: 设置系统时间 date -s "2017-08-08 18:18" 如果没改成功,可能是没有关闭互联网同步时间 阅读全文
posted @ 2017-08-17 15:37 vitalq 阅读(301) 评论(0) 推荐(0) 编辑