Redis缓存预热技术,启动项目报下面的错误

说明:使用了Redis缓存预热技术,启动项目报下面的错误;

错误信息:

Error creating bean with name 'userHandler': Unsatisfied dependency expressed 
through field 'redisHandler'; 

nested exception is org.springframework.beans.factory.BeanCreationException: Error creating 
bean with name 'redisHandler' defined 
in file[C:\Users\10765\Desktop\CodeFiles\caffeine_demo\target\classes\com\hzy\config\RedisHandler.class]: 
Invocation of init method failed; 

nested exception is org.springframework.data.redis.RedisSystemException: Error in execution; nested exception is 
io.lettuce.core.RedisCommandExecutionException: MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. 

Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). 

Please check the Redis logs for details about the RDB error.

解决:重启Redis容器

你可能感兴趣的:(缓存,redis,数据库)