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