先放原因:【版本不兼容】
異常:
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)