This commit is contained in:
Yutousama 2022-04-07 13:28:35 +08:00
parent bdb7d08622
commit a8b6b34406

View File

@ -190,7 +190,7 @@ public class RedisTools {
JedisPoolConfig poolConfig = new JedisPoolConfig(); JedisPoolConfig poolConfig = new JedisPoolConfig();
poolConfig.setMaxIdle(0); poolConfig.setMaxIdle(0);
poolConfig.setMaxWaitMillis(1000); poolConfig.setMaxWaitMillis(1000);
JedisPool pool = new JedisPool(poolConfig, host); JedisPool pool = new JedisPool();
return pool.getResource(); return pool.getResource();
} }