上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页
摘要: /** * map遍历 * @Author: Mr.li * @Date: 2020/9/8 */ @Test public void demo() { List<Person> list = new ArrayList<>(); for (int i = 0; i < 100; i++) { Pe 阅读全文
posted @ 2020-09-08 15:37 四叶草的诗雨 阅读(374) 评论(0) 推荐(0) 编辑
摘要: #拉去镜像(注:我这里拉取过了,和你们显示的有出入) [root@centos-linux ~]# docker pull redis [root@centos-linux ~]# docker images #创建集群目录 [root@centos-linux ~]# mkdir redis-cl 阅读全文
posted @ 2020-09-03 15:48 四叶草的诗雨 阅读(1070) 评论(0) 推荐(1) 编辑
摘要: #拉取镜像 [root@centos-linux ~]# docker pull rabbitmq:3.6.12-management #查看镜像 [root@centos-linux ~]# docker images #方式一:构建容器 [root@centos-linux ~]# docker 阅读全文
posted @ 2020-09-03 13:49 四叶草的诗雨 阅读(297) 评论(0) 推荐(0) 编辑
摘要: import com.google.common.collect.Lists; import org.apache.commons.collections.CollectionUtils; import org.apache.commons.lang.ObjectUtils; import org. 阅读全文
posted @ 2020-09-03 13:47 四叶草的诗雨 阅读(4258) 评论(0) 推荐(0) 编辑
摘要: 环境前期有写,就不多说了 #拉取镜像 [root@centos-linux ~]# docker pull mysql:5.7 # 查看镜像 #创建和运行容器 [root@centos-linux ~]# docker run -p 3306:3306 --name mymysql -v $PWD/ 阅读全文
posted @ 2020-09-03 11:30 四叶草的诗雨 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 之前面试几家公司,很频繁的问到了java8新特性的问题。这里总结一下: 部分转载于java8新特性 1.介绍 毫无疑问,Java 8发行版是自Java 5(发行于2004,已经过了相当一段时间了)以来最具革命性的版本。Java 8 为Java语言、编译器、类库、开发工具与JVM(Java虚拟机)带来 阅读全文
posted @ 2020-08-15 10:45 四叶草的诗雨 阅读(248) 评论(0) 推荐(0) 编辑
摘要: application.yml quartz: corePoolSize: 10 #核心池大小 maxPoolSize: 200 #最大池大小 queueCapacity: 10 #队列容量 测试类: AsyncConfig.java(读取配置) import org.springframework 阅读全文
posted @ 2020-08-14 17:50 四叶草的诗雨 阅读(324) 评论(0) 推荐(0) 编辑
摘要: //java8线程池 ExecutorService pool = Executors.newFixedThreadPool(4); Callable a = ()->{return findA();}; Callable b = ()->{return findB();}; Callable c 阅读全文
posted @ 2020-08-14 17:49 四叶草的诗雨 阅读(613) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { new Thread(() -> System.out.println(Thread.currentThread().getName())).start(); } 阅读全文
posted @ 2020-08-14 17:47 四叶草的诗雨 阅读(406) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) throws InterruptedException, ExecutionException { long start = System.currentTimeMillis(); Map<String, Object> 阅读全文
posted @ 2020-08-14 16:55 四叶草的诗雨 阅读(999) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页