SpringBoot 项目启动时解决报错:Unable to connect to Redis; nested exception is

时间:2024-11-15 17:22:54
2021-10-24 23:11:33.297 ERROR 5952 --- [ main] : Application run failed : Failed to execute CommandLineRunner at (:794) at (:775) at (:345) at (:1343) at (:1332) at (:11) Caused by: : Unable to connect to Redis; nested exception is : Unable to connect to localhost:6379 at $ExceptionTranslatingConnectionProvider.translateException(:1671) at $ExceptionTranslatingConnectionProvider.getConnection(:1579) at $SharedConnection.getNativeConnection(:1365) at $SharedConnection.getConnection(:1348) at (:1089) at (:421) at (:193) at (:144) at (:105) at (:209) at (:189) at (:726) at (:39) at $$FastClassBySpringCGLIB$$(<generated>) at (:218) at $DynamicAdvisedInterceptor.intercept(:688) at $$EnhancerBySpringCGLIB$$(<generated>) at (:19) at (:791) ... 5 common frames omitted Caused by: : Unable to connect to localhost:6379 at (:78) at (:56) at (:330) at (:216) at $getConnection$1(:115) at (:267) at (:115) at $ExceptionTranslatingConnectionProvider.getConnection(:1577) ... 22 common frames omitted Caused by: : ERR Client sent AUTH, but no password is set