会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
菜鸟需勤奋
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
10
11
12
13
14
15
16
17
18
···
48
下一页
2023年6月11日
阻塞队列LinkedBlockingQueue
摘要: 入队方法:put 和 offer put方法共做了以下情况的考虑:(1)队列已满,阻塞等待;(2)队列未满,创建一个node节点放入队列中,如果放完以后队列还有剩余空间,继续唤醒下一个添加线程进行添加。如果放之前队列中没有元素,放完以后要唤醒消费线程进行消费。 offer方法仅仅对put方法一点改动
阅读全文
posted @ 2023-06-11 15:11 iTao0128
阅读(44)
评论(0)
推荐(0)
2023年6月7日
正则表达式
摘要: 参考 https://blog.csdn.net/m0_57026595/article/details/123804578
阅读全文
posted @ 2023-06-07 22:20 iTao0128
阅读(16)
评论(0)
推荐(0)
spring-boot-starter-validation数据校验
摘要: 依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-validation</artifactId> </dependency> bean import boot.ann
阅读全文
posted @ 2023-06-07 22:08 iTao0128
阅读(293)
评论(0)
推荐(0)
2023年6月5日
okhttp的使用
摘要: 依赖 <dependency> <groupId>com.squareup.okhttp3</groupId> <artifactId>okhttp</artifactId> <version>3.6.0</version> </dependency> <dependency> <groupId>c
阅读全文
posted @ 2023-06-05 22:33 iTao0128
阅读(113)
评论(0)
推荐(0)
2023年6月4日
自定义异步注解
摘要: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-aop</artifactId> </dependency> @RestController @Slf4j public
阅读全文
posted @ 2023-06-04 17:22 iTao0128
阅读(45)
评论(0)
推荐(0)
aop操作-环绕通知获取数据的案例
摘要: 添加ResourcesService,ResourcesServiceImpl,ResourcesDao和ResourcesDaoImpl类 public interface ResourcesDao { boolean readResources(String url, String passwo
阅读全文
posted @ 2023-06-04 16:37 iTao0128
阅读(53)
评论(0)
推荐(0)
Async异步注解
摘要: @RestController @Slf4j public class Thread04 { @Autowired private OrderManage orderManage; @GetMapping("addOrder") public String addOrder(){ log.info(
阅读全文
posted @ 2023-06-04 12:04 iTao0128
阅读(21)
评论(0)
推荐(0)
使用线程池方式创建子线程
摘要: public static void main(String[] args) { ExecutorService executorService = Executors.newCachedThreadPool(); executorService.execute(new Runnable() { @
阅读全文
posted @ 2023-06-04 09:25 iTao0128
阅读(62)
评论(0)
推荐(0)
2023年5月29日
生成二维码
摘要: 依赖 <dependency> <groupId>com.google.zxing</groupId> <artifactId>core</artifactId> <version>3.4.1</version> </dependency> <dependency> <groupId>com.goo
阅读全文
posted @ 2023-05-29 21:48 iTao0128
阅读(30)
评论(0)
推荐(0)
2023年5月28日
整合阿里云短信服务
摘要: 阿里云官网 1.登录官网https://www.aliyun.com/ 2.短信服务,申请签名 3.添加模板 项目中依赖 <dependency> <groupId>com.aliyun</groupId> <artifactId>aliyun-java-sdk-core</artifactId>
阅读全文
posted @ 2023-05-28 21:01 iTao0128
阅读(54)
评论(0)
推荐(0)
上一页
1
···
10
11
12
13
14
15
16
17
18
···
48
下一页
公告