目录
could not connect to Redis at 127.0.0.1:6379:由于目标计算机积极拒绝,无法连接
解决办法
启动效果
今天下载了若依框架,本来想运行一下看看效果,结果出现下列问题
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.redis.connection.PoolException: Could not get a resource from the pool; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to localhost:6379
could not connect to Redis at 127.0.0.1:6379:由于目标计算机积极拒绝,无法连接
搜了一下,发现是没有启动redis,然后我就打开命令行连接redis,结果出现下列错误
解决办法
在redis目录下输入命令redis-server.exe(注意不要关闭窗口)
然后再打开一个cmd窗口,输入命令redis-cli,启动成功
启动效果
然后启动若依项目,成功启动