潜
2023-10-23
今天上线OJ项目的时候遇到了几个小问题,我本来时想用一下Redisson的分限流,在本地测试的时候并没有发现问题,但是在服务器上打包依赖,并运行dockerscompose文件时,报出了Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'redisLimiterManager': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'redissonClient' defined in class path resource [com/star/starojbackendquestionservice/config/RedissonConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.redisson.api.RedissonClient]: Factory method 'redissonClient' threw exception; nested exception is org.redisson.client.RedisConnectionException: Unable to connect to Redis server: redis/172.18.0.5:6379这个错误,而且,当我删除掉本地的redisson配置和依赖重新上传,重新打包时还是报的这个错误,其它服务也能在注册中心看到,但是会报出这个错误at org.springframework.data.redis.connection.lettuce.LettuceExceptionConverter.convert(LettuceExceptionConverter.java:70) ~[spring-data-redis-2.6.9.jar!/:2.6.9]。今天弄了一天,有点麻了,还是没有解决。希望能通过星球来帮助我解决一下。
0个评论
点击登录,快来和大家讨论吧~
表情
图片
暂无评论
下载 APP