public void test(){ synchronize(this){ // 代码块 } }
redis分布式锁(待完成)
原文:https://www.cnblogs.com/shiblog/p/12020092.html