
经验
文章平均质量分 51
zhhhhhhhhhhh
这个作者很懒,什么都没留下…
展开
-
JCIFS首次读取共享目录很慢
JCIFS首次读取共享目录很慢连续读取文件时,第一次读取时间在6s左右,后续非常快且读取不通机器的共享目录时,速度均有差异经检查,为JCIFS版本问题原版本,为直接在maven仓库中找的<!-- https://mvnrepository.com/artifact/org.samba.jcifs/jcifs --><dependency> <groupId>org.samba.jcifs</groupId> <artifact原创 2021-07-15 14:40:32 · 747 阅读 · 0 评论 -
线程池等待所有线程结束
ArrayList<Integer> integers = new ArrayList<>(); ThreadPoolExecutor executor = ThreadPoolUtils.init(); for (int i = 0; i < 10; i++) { executor.execute(new Add(i, integers)); } if(!executor.isShut..原创 2020-09-06 15:09:36 · 1293 阅读 · 0 评论 -
优快云代码块底色修改方法
优快云代码块底色修改方法今天在写代码时发现代码块背景是黑色的,个人不怎么喜欢黑色的背景,百度了一下,发现全是改默认编辑器的做法,明显不怎么管用然后看了下编辑器,默认的代码块是没有颜色的,当改为java代码块的时候,底色变黑,同时有了语法高亮提示这是默认的代码块public static void main(String[] args) throws IOException {java...原创 2019-05-25 13:50:41 · 7583 阅读 · 2 评论 -
idea快速生成java bean
idea快速生成java bean1.在idea新建数据库连接2.配置连接信息,根据数据库版本选择连接驱动(默认MySQL8)3.在表上右键4.选择生成的实体类位置原创 2019-06-08 13:48:52 · 8930 阅读 · 0 评论 -
idea2019提示Key is invalid解决方法
1.将 0.0.0.0 https://account.jetbrains.com:443加入hosts,其他的全部删掉2.在cmd终端中输入ipconfig /flushdns,回车刷新缓存3.输入序列号原创 2019-06-12 09:40:36 · 36926 阅读 · 1 评论 -
xml文件报 The content of element type "web-app" must match........
xml文件报 The content of element type “web-app” must match “(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,m...转载 2019-06-23 22:07:07 · 227 阅读 · 0 评论 -
Spring MVC静态资源处理default-servlet-handler和resources的区别
Spring MVC静态资源处理mvc:default-servlet-handler mvc:resources的区别优雅REST风格的资源URL不希望带 .html 或 .do 等后缀.由于早期的Spring MVC不能很好地处理静态资源,所以在web.xml中配置DispatcherServlet的请求映射,往往使用 *.do 、 *.xhtml等方式。这就决定了请求URL必须是一个带后缀...转载 2019-06-30 10:45:40 · 1235 阅读 · 0 评论 -
线程池创建的一些问题
最近了解一下线程池,下载其中的代码并运行。https://howtodoinjava.com/core-java/multi-threading/when-to-use-countdownlatch-java-concurrency-example-tutorial/其中ApplicationStartupUtil这个类 package com.chujianyun;import...转载 2019-07-21 18:29:31 · 326 阅读 · 0 评论