日志如图目前使用redis 作为手机登录验证码缓存5分钟失效,目前在使用一段时间后,就会报这个连接资源池问题
在代码中使用的是redisTemplate在ValueOperations操作时也进行了连接判断等,目前线上运行一段时间还是会出现该问题,
    
@Bean(name = "valueOperations")
 public ValueOperations<String, Object> valueOperations(@Qualifier("redisTemplate") RedisTemplate<String, Object> redisTemplate) {
        try {
            return redisTemplate.opsForValue();
        } finally {
            //释放连接
            RedisConnectionUtils.unbindConnection(redisTemplate.getConnectionFactory());
        }
    }
redis配置项是这样,也没啥问题啊
spring:
  redis:
      host: 127.0.0.1
      port: 6379
      database: 2 
      timeout: 6000
      pool:
        max-active: 8
        max-idle: 8
        max-wait: -1
        min-idle: 0
求助大神帮忙瞅瞅