记一次jedis并发使用问题JedisException: Could not return the resource to the pool

今天线上突然发现个奇怪的问题项目第一次启动的时候redis报错JedisException: Could not return the resource to the pool 直接访问接口的时候不报错,访问页面的时候报这个错。而且只有项目重启的时候才会报这个错,刚开始以为接口问题,仔细分析页面原来这个页面同时加载了好多个接口这些接口都调用了一个方法。而这个方法正好依赖redis。线下自己写个多线
相关文章
相关标签/搜索