Wesley13 Wesley13
4年前
Java并发系列5
今天讲一个倒计时器工具,叫CountDownLatch。需要这个工具的场景大概有:当所有的小任务都完成之后,再启动大任务。先看代码:publicclassCountDownLatchDemo{staticfinalCountDownLatchLATCHnewCountDownLatch(10);
Stella981 Stella981
4年前
Guns 官方介绍
Guns码云地址:https://gitee.com/naan1993/guns/1、项目介绍介绍Guns基于SpringBoot,致力于做更简洁的后台管理系统,完美整合springmvcshiromybatisplusbeetlflowable!Guns项目代码简洁,注
Wesley13 Wesley13
4年前
MySQL分区表的管理~1
一、如何管理RANGE和LIST分区以该分区表为例!复制代码(https://oscimg.oschina.net/oscnet/33f58549bdff038e3944801cff215e9419a.gif)CREATETABLEmembers(idINT,fnameVARCHA
Stella981 Stella981
4年前
Spring Security教程之Spring Security实现访问控制
在SpringSecurity中,实现访问控制或权限控制是非常容易实现的,请看下面的代码片段:123  <http autoconfig"true"    <intercepturl pattern"/admin\" access"ROLE\_ADMIN" /  </http它的意思是,只有“ROLE\_ADM
Stella981 Stella981
4年前
Android PLT hook 概述
获取代码和资源请点击原文链接开始新的动态库我们有一个新的动态库:libtest.so。头文件test.hifndefTEST_HdefineTEST_H1ifdef__cplusplusextern"C"{endif
Stella981 Stella981
4年前
C++练习(coursera北大c++课后习题)
week31描述下面程序输出的结果是:05请填空:1include<iostream2usingnamespacestd;3classA{4public:5intval;6//在此处补充你的代码7};
Stella981 Stella981
4年前
Office customUI中如何动态更新控件标题和图标?
本例,在Excel右键菜单中创建一个按钮,按钮的标题使用getLabel动态获取,图标使用getImage动态获取。customUIXML代码:<customUIxmlns"http://schemas.microsoft.com/office/2009/07/customui"onLoad"OL"<contex
Stella981 Stella981
4年前
Netty工具类HashedWheelTimer源码走读(三)
接上一篇(http://my.oschina.net/haogrgr/blog/490266(http://my.oschina.net/haogrgr/blog/490266) )8. Worker代码走读. //主要负责累加tick, 执行到期任务等.private final class Worker imple