线程池 目的 降低资源消耗 通过重复利用已创建的线程降低线程的创建和销毁的消耗 提高利用率 当任务到达时,可以省去线程的创建时间,直接去执行。 方便管理 线程是稀缺资源,如果无限制地创建,不仅会消耗系统资源,还会降低系统的稳定性。使用线程池可以统一分配,调优和监控。 线程池的四种创建方式 1. ne ...
分类:
编程语言 时间:
2019-01-24 22:59:07
阅读次数:
252
Spring Aop中@pointCut的用法,格式:execution(modifiers-pattern? ret-type-pattern declaring-type-pattern? name-pattern(param-pattern)throws-pattern?)pattern分别表 ...
分类:
编程语言 时间:
2019-01-18 18:31:04
阅读次数:
186
mongodb可以通过profile来监控数据,进行优化。查看当前是否开启profile功能用命令db.getProfilingLevel() 返回level等级,值为0|1|2,分别代表意思:0代表关闭,1代表记录慢命令,2代表全部开启profile功能命令为 level为1的时候,慢命令默认值为 ...
分类:
数据库 时间:
2019-01-18 12:27:38
阅读次数:
187
[From] https://colobu.com/2016/02/15/Scala-Async/ 在我以前的文章中,我介绍了Scala Future and Promise。Future代表一个异步计算,你可以设置你的回调函数或者利用Await.result等待获取异步计算的结果,你还可以组合多个 ...
分类:
其他好文 时间:
2019-01-15 14:28:09
阅读次数:
190
写在开篇 已经不敢自称前端小白,曾经吹过的牛逼总要一点点去实现。 正如前领导说的,自己喝酒吹过的牛皮,跪着都得含着泪去实现。 那么没有年终完美总结,来个新年莽撞开始可好。 进击巨人系列开篇,不忘初心,砥砺前行。 理解执行上下文 执行上下文(Execution Context): 函数执行前进行的准备 ...
分类:
其他好文 时间:
2019-01-14 23:17:21
阅读次数:
295
pom.xml文件修改 1.在dependencies 下添加 org.springframework.boot spring-boot-devtools runtime 2.在build > plugins > plugin 下添加 true 3.file > Build,Execution,De... ...
分类:
其他好文 时间:
2019-01-14 18:50:07
阅读次数:
284
1.操作步骤: 1-1.添加断点:直接在标记处点击鼠标左键即可。(删除断点只需再点击断点处即可) 1-2.Debug下运行代码 1-3.按照所需调试进行代码调试。Debug的调试方式如下所示: 分别为: 1.show execution point (F10) 显示当前所有断点 2.step ove ...
分类:
其他好文 时间:
2019-01-14 10:48:18
阅读次数:
183
gradlew assembleDebug --stacktrace 查看使用的依赖的 Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.> com.android.build.api.transfor ...
分类:
移动开发 时间:
2019-01-11 15:10:55
阅读次数:
380
1.idea快捷键 1.debug调试的快捷键: F9 resume programe 恢复程序 Alt+F10 show execution point 显示执行断点 F8 Step Over 跳到下一步 F7 Step Into 进入到代码 Alt+shift+F7 Force Step Int ...
分类:
其他好文 时间:
2019-01-10 15:42:53
阅读次数:
159
原文:添加cordova-plugin-file-opener2后,打包出错 报错如下:* What went wrong:Execution failed for task ':app:processDebugResources'.> Failed to execute aapt* Try:Run... ...
分类:
其他好文 时间:
2019-01-07 00:21:44
阅读次数:
176