redis卡死问题解决
1、pom.xml【jedis:2.10.2】
pom.xml文件更换jedis:2.10.2包
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>2.10.2</version>
</dependency>
2、application.yml用jedis配置
# [jedis:2.10.2]new
jedis:
pool:
maxWaitMillis: 1000
maxTotal: 500
maxIdle: 10
minIdle: 100
testOnBorrow: true
testOnReturn: true
testWhileIdle: true
numTestsPerEvictionRun: 10
timeBetweenEvictionRunsMillis: 10
minEvictableIdleTimeMillis: 100
blockWhenExhausted: false
3、redis:事务设置为false
备注:RedisConfig.java的redis事务设置为false