会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Catch Spark. Code Life
博客园
首页
新随笔
管理
上一页
1
···
17
18
19
20
21
2019年11月13日
Spring(002)-创建rest服务
摘要: 1.创建基于get参数的rest服务 2.创建向服务器post数据的rest服务
阅读全文
posted @ 2019-11-13 23:09 ibrake
阅读(201)
评论(0)
推荐(0)
2019年11月10日
Spring(001)-Hello Spring
摘要: Spring系列第一篇,先通过Spring实现一个Hello Spring程序。
阅读全文
posted @ 2019-11-10 22:09 ibrake
阅读(189)
评论(0)
推荐(0)
actuator beans不展示
摘要: 引入actuator后发现 health可以正常展示。 但是发现beans无法展示 解决: 在application.properties里面加入配置:
阅读全文
posted @ 2019-11-10 15:34 ibrake
阅读(503)
评论(0)
推荐(1)
2019年9月1日
Java读取property文件
摘要: public static Properties loadProps(String fileName) { Properties properties = null; InputStream inputStream = null; try { inputStream = Thread.currentThread().g...
阅读全文
posted @ 2019-09-01 17:01 ibrake
阅读(432)
评论(0)
推荐(0)
2019年8月19日
ThreadPoolExecutor参数
摘要: 参数明细 查看大图 ThreadPoolExecutor执行顺序: 线程池按以下行为执行任务 当线程数小于核心线程数时,创建线程。 当线程数大于等于核心线程数,且任务队列未满时,将任务放入任务队列。 当线程数大于等于核心线程数,且任务队列已满 若线程数小于最大线程数,创建线程 若线程数等于最大线程数
阅读全文
posted @ 2019-08-19 23:22 ibrake
阅读(720)
评论(0)
推荐(0)
2019年8月18日
Java线程池
摘要: 线程池的好处 线程池主要处理流程 线程池的创建 使用ThreadPoolExecutor来创建,专门写一篇介绍。 线程池的配置 在《Java Concurrency in Practice》一书中,给出了估算线程池大小的公式: Nthreads = Ncpu x Ucpu x (1 + W/C),其
阅读全文
posted @ 2019-08-18 21:25 ibrake
阅读(369)
评论(0)
推荐(0)
用java多线程模拟数据库连接池
摘要: 模拟一个ConnectionDriver,用于创建Connection package tread.demo.threadpool; import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; import
阅读全文
posted @ 2019-08-18 20:15 ibrake
阅读(1830)
评论(0)
推荐(0)
上一页
1
···
17
18
19
20
21
公告