redisson 异常 IllegalArgumentException: port out of range:-1

先放原因:【版本不兼容】

异常:

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

端口超出范围:-1

解决

在茫茫大海的文章中找到一个私人博客,在大佬的帖子的提示下修改了redisson的版本,cao。
最后重新reload一下pom.xml,就行了

SpringBoot中基于Redis的分布式锁实现(通过Redisson)

posted @ 2021-11-30 15:19  sailorj  阅读(2568)  评论(0)    收藏  举报