org.springframework.data.redis.RedisSystemException: Error in execution; nested exception is io.l...

public Long incr(final String key,final Integer in){
        Long x = redisTemplate.opsForValue().increment(key,in);
        return x;
    }

报错:org.springframework.data.redis.RedisSystemException: Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: ERR value is not an integer or out of range

你可能感兴趣的:(org.springframework.data.redis.RedisSystemException: Error in execution; nested exception is io.l...)