![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java运用
ycy12
这个作者很懒,什么都没留下…
展开
-
多线程应用java.util.concurrent.ThreadPoolExecutor
在java编程中,需要应用多线程的情况还是比较多的,多线程程序编写也有很多方式,最原始的方法,直接new Thread重写run方法,或者是实现Runable。这两种方式本质都是直接new Thread。效率和资源利用率比较低。下面我说一下比较推荐的方式。A thread pool should be created by ThreadPoolExecutor rather than Execut...原创 2018-05-14 11:12:32 · 10586 阅读 · 0 评论 -
liunx系统下,nginx和tomcat中文资源404
由于项目要求,系统需要支持中文文件名。 系统结构是nginx+tomcat。 首先是配置文件访问不经过tomcat。nginx直接触达资源: 给出一个例子,具体的nginx配置规则另行查阅。 location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|flv|ico|zip|mp4|woff|ttf|pdf|doc|docx|ppt|pptx|html)$ {...原创 2018-12-07 17:19:59 · 784 阅读 · 0 评论