Tag Archives: Illegal ArgumentException: port out of range:1

[Solved] redisson Error: IllegalArgumentException: port out of range:-1

Reason for putting it first: [version incompatibility]

Exception:

Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [redis.client.RedisClient]: Factory method ‘redisClient’ threw exception; nested exception is java.lang.IllegalArgumentException: port out of range:-1

Port out of range: – 1

Solution:

Find a private blog in the vast sea of articles, and modify the reisson version, Cao, under the tips of the boss’s post

Finally, reload pom.xml again

Redis based distributed lock implementation in springboot (via redisson)