摘要:
三个关键点,如图所示 阅读全文
摘要:
java httpclent get post 阅读全文
摘要:
新公司第一天,从svn checkout maven项目后,导入eclipse,发现文件的图标不对,如下图箭头所示,出现这个问题的原因, 是项目的的目录下没有.classpath文件,所以需要执行下mvn命令,然后把项目转成eclipse可识别的maven项目; mvn命令如下:cmd到项目的目录下 阅读全文
摘要:
ps -ef --forest 展示子进程 [root@iZ239ja5s3zZ ~]# ps -ef --forest | grep nginxroot 8164 8113 0 11:38 pts/1 00:00:00 \_ grep --color=auto nginxroot 1466 1 0 阅读全文
摘要:
代码很简单,eclipse里面设置下最大堆空间为128m,: @Test public void testOutOfMemory() { List<NewsAddDto> documents = new ArrayList<>(); while (true) { NewsAddDto d = new 阅读全文
摘要:
我们现在在Java中使用多线程通常不会直接用Thread对象了,而是会用到java.util.concurrent包下的ExecutorService类来初始化一个线程池供我们使用。 当我们使用ExecutorService来做多线程处理时,习惯自己维护一个list保存submit的callable 阅读全文
摘要:
需要引用的依赖: import org.junit.runner.RunWith;import org.springframework.test.context.ContextConfiguration;import org.springframework.test.context.junit4.S 阅读全文
摘要:
在使用百度的ueditor的时候,老是报错: The method getDispatcherType() is undefined for the type HttpServletRequest 原因可能有二:1、是jar冲突了,把servlet-api的jar包直接删了就ok了。 2、tomca 阅读全文