xxkfz xxkfz
3年前
【工具篇】使用concurrentHashMap实现缓存工具类
📢📢📢📣📣📣哈喽!大家好,今天给大家带来一个使用concurrentHashMap封装的缓存工具类,并提供了常用的方法:存入缓存、查找缓存、删除缓存、获取缓存大小等等;✨个人博客:✨✨公众号:【SimpleMemory】✨❤️❤️❤️如果有对【后端技术】感兴趣的大佬们,欢迎关注!!!❤️❤️❤️ 示例代码:importlombok.extern.slf4j.Slf4j;importjava.util.;importjava.util.concurrent.;/@authorxxkfz
Elasticsearch查询及聚合类DSL语句宝典
随着使用es场景的增多,工作当中避免不了去使用es进行数据的存储,在数据存储到es当中以后就需要使用DSL语句进行数据的查询、聚合等操作,DSL对SE的意义就像SQL对MySQL一样,学会如何编写查询语句决定了后期是否能完全驾驭ES,所以至关重要,本专题主要是分享常用的DSL语句,拿来即用。
Stella981 Stella981
3年前
C++中string类的正确写法
C的一个常见面试题是让你实现一个String类,限于时间,不可能要求具备std::string的功能,但至少要求能正确管理资源。具体来说:1.能像int类型那样定义变量,并且支持赋值、复制。2.能用作函数的参数类型及返回类型。3.能用作标准库容器的元素类型,即vector/list/deque的
Wesley13 Wesley13
3年前
Java8中的LocalDateTime工具类
<divid"content\_views"class"markdown\_views"<!flowchart箭头图标勿删<svgxmlns"http://www.w3.org/2000/svg"style"display:none;"<pathstrokelinecap"round"d"M5,00,
Stella981 Stella981
3年前
Spring Boot(十五):启动类原理解析
一、启动类简介@SpringBootApplicationpublicclassApplication{publicstaticvoidmain(Stringargs){SpringApplication.run(Application.class,args);
Stella981 Stella981
3年前
JavaScript——面向对象以及基于类的继承
!(http://static.oschina.net/uploads/img/201601/15103654_Y7EU.gif)!(http://static.oschina.net/uploads/img/201601/15103654_PyU6.gif)ViewCode1/
Stella981 Stella981
3年前
Delphi中TStringList类常用属性方法详解
//TStringList常用方法与属性:varList:TStringList;i:Integer;beginList:TStringList.Create;List.Add('Strings1');{添加}List.Add(
Stella981 Stella981
3年前
JUnit5学习之三:Assertions类
欢迎访问我的GitHubhttps://github.com/zq2599/blog\_demos(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fgithub.com%2Fzq2599%2Fblog_demos)内容:所有原创文章分类汇总及配套源码,涉及Java、Doc
Stella981 Stella981
3年前
FtpUtil ftp工具类 过滤文件名
工具类:importjava.io.BufferedReader;importjava.io.ByteArrayOutputStream;importjava.io.DataInputStream;importjava.io.DataOutputStream;importjava.io.File;
Stella981 Stella981
3年前
AndroidUniversalImageLoader图片异步加载类库的使用
开发App过程中,免不了要进行网络请求操作进行数据交换,比如下载图片,如果自己写一个下载图片的类进行操作的话,要考虑太多太多内容,必须线程池,内存溢出,图片磁盘缓存操作,图片内存缓存操作等等,相当麻烦。好在伟大的开源者们已经写好了一个比较完美的开源类库供大家使用Android(https://www.oschina.net/action/GoTo