- 博客(5)
- 资源 (1)
- 问答 (1)
- 收藏
- 关注
原创 Spring boot web与Spring boot webflux 简单对比及分析
Spring boot web测试代码 @RequestMapping("/") public String index() { int num = 1; for (int i = 1; i <= 10; i++) { num *= i; } try { Thread.sleep(2000); } catch (Interrup...
2019-10-18 17:37:50 2110
原创 Java中四种线程池的用法
newFixedThreadPool 创建一个一定数量线程的线程池,如果需要同时执行的任务数超出了这个数量,则将这些任务存放在队列中,这些任务始终都是由线程池中的这些线程来执行 使用:Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors()); Runtime.getRuntime().avail...
2018-09-10 14:42:19 393
原创 Mybatis出现Mapped Statements collection already contains value for
Mybatis出现Mapped Statements collection already contains value for com.错误分析: 1.mapper中id存在重复值; 2.mapper中缺少parameterType,或者查询中缺少resultType; 3.mapper中resultMap使用错误,或者parameterMap使用错误; 4.mapper...
2018-05-31 17:35:25 5428
原创 读取Excel文件方法,返回Map集合
Excel文件读取Class ReadExcelFile{ public static Map<String, JSONArray> readExcelData(String exclePath) { Workbook wb = null; Sheet sheet = null; Row row = null; List<Map<String, Excel...
2018-04-12 14:51:05 2739
原创 使用Eclipse时出现Unhandled event loop exception错误的有效解决办法
最近使用Eclipse时总会在操作时不间断的出现Unhandled event loop exception No more handles的情况。如下图翻墙查找和国内百度得到答案总结如下删除workspace 工作区 重新新建工作区网上报百度杀毒引起 处理办法 关闭百度杀毒 或加ADT目录 和工作区加入白名单更新eclipse swt插件开发时关闭AdSafe软件 因为我的处理好之后再开A...
2018-04-04 09:15:52 3639
关于使用阻塞队列的技术问题,请大家帮我看看有什么问题?
2019-04-01
TA创建的收藏夹 TA关注的收藏夹
TA关注的人