启动springboot项目报错:org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating be
完整报错如下:Error creating bean with name 'captchaController': Unsatisfied dependency expressed through field 'configService'; nested exception is org.springframework.beans.factory.BeanCreationException: E
完整报错如下:
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.redis.connection.PoolException: Could not get a resource from the pool; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to localhost:6379
看到这里大家应该明白了红色部分 橘色部分就是关键信息 没有启动Redis。在报错时抓住关键信息
启动Redis后
重新启动项目:
更多推荐
所有评论(0)