摘要:
redis的 key 过期策略是怎么样的 redis 的过期策略主要是定期删除和懒删除来实现的 定期 阅读全文
摘要:
基于redis实现分布式锁的几种方案以及不足 方案1:setnx 方案(不建议使用) redis 提 阅读全文
摘要:
redis的5种数据类型以及其底层实现 redis 是KV(key-value pair)存储,不管 阅读全文
摘要:
解决方法:1、关闭 idea 2、删除该项目录下的 .idea 文件 3、重新 open 项目 阅读全文
摘要:
redis 准备 下载:https://redis.io/download 下载解压后的地址: /Users/sam/soft/redis-4.0.2 redis-cluster 3master 3 slave 搭建流程: 1、创建redis-cluster文件夹:如下: /Users/sam/so 阅读全文
摘要:
原因:httpclient 之前与服务端建立的链接已经失效(例如:tomcat 默认的keep-alive timeout :20s),再次从连接池拿该失效链接进行请求时,就会保存。 解决方法:官方链接:http://hc.apache.org/httpcomponents-client-ga/tu 阅读全文
摘要:
一、背景:启动tomcat的时候,报错:java.lang.IncompatibleClassChangeError: class org.springframework.core.type.classreading.ClassMetadataReadingVisitor has interface... 阅读全文
摘要:
一、CXF环境的配置1、下载CXF的zip包。2、解压。例如:D:\ITSoft\webserviceClientUtils\cxf\apache-cxf-2.7.173、配置环境变量:新建变量。例如:变量名为:CXF_HOME, 变量值:D:\ITSoft\webserviceClientUtil... 阅读全文
摘要:
1、问题:eclipse的debug模式经常自动跳到TheadPoolExecutor的断点,实在烦人解决方法是:在eclipse中选择Window->Preference->Java->Debug,将“Suspend execution on uncaught exceptions”的勾去掉即可 阅读全文
摘要:
1.方法上面的RequestMapping要加上红色的部分。 @ResponseBody @RequestMapping(value = "/search", produces = {"application/json;charset=UTF-8"}) public String search(... 阅读全文