一、错误详细
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'captchaController': Unsatisfied dependency expressed through field 'configService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sysConfigServiceImpl': Invocation of init method failed; nested exception is org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis; nested exception is org.springframework.data

文章描述了一个SpringBoot应用在启动时由于无法连接到本地Redis服务器而引发的错误。错误的根本原因在于后端配置文件中设置了Redis密码,但实际Redis服务未设置密码。解决方案是确保后端配置与Redis配置一致,即两者都应有密码或都不设密码。可以通过修改配置文件或在Redis中设置匹配的密码来解决问题。

1296

被折叠的 条评论
为什么被折叠?



