hutools实现定时缓存

hutools几个类型的缓存CacheUtil类是一个可以创建各种类型缓存的工厂类,默认提供了下面6种缓存的创建:1. FIFOCache: 先进先出缓存• 元素不停的加入缓存直到缓存满为止,当缓存满时,清理过期缓存对象,清理后依旧满则删除先入的缓存(链表首部对象)• 优点:简单快速• 缺点:不灵活
2023年05月29日 57次浏览

Redisson实现Redis分布式锁

说明使用依赖重入锁
2023年05月22日 77次浏览

Springboot使用SseEmitter实现:后端主动向前端推送数据

代码SseEmitterServer.javapackage gpt3.api.service;import org.slf4j.Logger;import org.slf4j.LoggerFactory;import org.springframework.http.MediaType;impor
2023年04月20日 589次浏览

使用Linux的systemd运行jar包

服务定义文件vi /lib/systemd/system/[APP_NAME].service[Unit]Description=[APP_NAME][Service]WorkingDirectory=/optPrivateTmp=trueRestart=alwaysType=simpleExecS
2023年03月07日 615次浏览

Java公认通俗易懂的包名

annotationaspectcacheconfigcontrollercoreeventexceptionfactoryfilterhandlerlistenermailmodelrepositorysecurityservicetaskthemeutils
Java 2023年02月28日 588次浏览

es转储工具elasticdump

elasticsearch 2022年09月25日 734次浏览

Jmeter分布式环境搭建

1. 压力机配置jmeter.propertiesserver_port=1099server.rmi.localport=1099server.rmi.ssl.disable=true启动:``2. 控制机配置remote_hosts=192.168.1.101:1099,192.168.1.10
2022年09月22日 492次浏览

Springboot通过kafka收集日志

一、logback依赖 <dependency> <groupId>com.github.danielwegener</groupId> <artifactId>logback-kafka-ap
Kafka 2022年09月13日 613次浏览

K8s部署apollo配置中心configServices内网IP问题

说明K8s部署apollo配置中,springboot启动后,从容器IP上获取配置,因为是内部IP,所以外部无法连接springboot集成apollo配置,如下app: id: 100001apollo: cacheDir: /tmp/apollo/ cluster: default me
Java 2022年07月07日 746次浏览

OpenAPI接口签名验签设计

OpenAPI接口验签设计1. 参数private static String url = “http://xxx.xxx.com/gateway”;private static String appId = “test”;private static String appKey = “3336AF
2022年05月26日 730次浏览