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)


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM