解决Could not get a resource from the pool 异常问题

在项目中实现数据库查询内容,用到redis的时候出现 Could not get a resource from the pool ,试了挺多方法都不行,包括改最大、最小连接数maxIdle、maxIdle都无法解决。解决Could not get a resource from the pool 异常问题_第1张图片
从头到尾仔细摸索仔细排查,终于给发现问题了。就是没有把服务打开:redis-server.exe
解决Could not get a resource from the pool 异常问题_第2张图片
解决Could not get a resource from the pool 异常问题_第3张图片
打开了之后就能正常使用redis了。

你可能感兴趣的:(Java,Web,BUG解决,redis,bug,java,数据库)