Caused by: redis.clients.jedis.exceptions.JedisDataException: ERR invalid expire time in SETEX
解决方法:
错误语句:
getStringRedisTemplate().opsForValue()
.set(sessionId,"z值", -1L, TimeUnit.SECONDS);
其中到期时间不能小于0, -1L长整型小于0,所以报错
本文地址:http://www.yayihouse.com/yayishuwu/chapter/1466