会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
许XS
记录,分享,学习
博客园
首页
新随笔
联系
订阅
管理
随笔 - 58
文章 - 0
评论 - 3
阅读 -
14万
08 2020 档案
synchronized类锁,方法锁,块级锁,一文看懂
摘要:##先说结论: ####1.synchronized加到静态方法上 调用静态方法时会锁住此类,如果此类有2个静态方法都加上了synchronized则同一时刻只能有一个静态方法被调用 ####2.synchronized加到普通方法上 该类的实例(实例指new出来的对象)同一时刻只能调用一个方法,如
阅读全文
posted @
2020-08-19 09:26
xuxianshun
阅读(938)
评论(0)
推荐(0)
编辑
公告
昵称:
xuxianshun
园龄:
8年2个月
粉丝:
3
关注:
1
+加关注
<
2025年3月
>
日
一
二
三
四
五
六
23
24
25
26
27
28
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
搜索
常用链接
我的随笔
我的评论
我的参与
最新评论
我的标签
我的标签
redis集群
(1)
rabbitmq
(1)
docker
(1)
随笔分类
axios(1)
docker(7)
FastDFS(1)
git(1)
Java(2)
Linux(4)
mybatis(2)
mysql(7)
rabbitmq(3)
redis(9)
Spring(3)
Spring Boot(13)
Spring Cloud(2)
uniapp(2)
vue(3)
微信开发(2)
更多
随笔档案
2024年9月(1)
2024年4月(1)
2023年3月(1)
2023年1月(2)
2022年12月(1)
2022年11月(1)
2022年9月(3)
2022年8月(2)
2022年7月(3)
2022年5月(1)
2022年4月(1)
2022年3月(1)
2021年10月(1)
2021年9月(4)
2021年8月(1)
2021年7月(1)
2021年3月(3)
2021年1月(1)
2020年11月(1)
2020年10月(1)
2020年9月(4)
2020年8月(1)
2020年5月(2)
2019年10月(2)
2019年9月(1)
2019年7月(8)
2019年6月(1)
2019年5月(3)
2019年4月(1)
2018年10月(1)
2018年9月(3)
更多
阅读排行榜
1. SpringBoot上传文件大小限制(15834)
2. 给springboot增加XSS跨站脚本攻击防护功能(15035)
3. SpringBoot返回JSON日期格式问题(14531)
4. springboot rabbitmq 找不到队列(12739)
5. OncePerRequestFilter原理简介(12085)
评论排行榜
1. rabbitmq启动时出错epmd error for host(2)
2. Error: XXX requires @vue/compiler-sfc to be present in the dependency tree(1)
推荐排行榜
1. 给springboot增加XSS跨站脚本攻击防护功能(3)
2. OncePerRequestFilter原理简介(2)
3. SpringBoot返回JSON日期格式问题(2)
4. redis系列之4----redis高级应用(集群搭建、集群分区原理、集群操作)(1)
5. rabbitmq添加自启动 centos7环境(1)
最新评论
1. Re:Error: XXX requires @vue/compiler-sfc to be present in the dependency tree
所以最后怎么解决的呢?
--匹诺曹呀
2. Re:rabbitmq启动时出错epmd error for host
@yxqmolly0615 linux下文件编辑器 vi或者vim...
--xuxianshun
3. Re:rabbitmq启动时出错epmd error for host
vi是什么东西
--yxqmolly0615
点击右上角即可分享