自建redis迁移云报错

2022/7/21 2:23:35

本文主要是介绍自建redis迁移云报错,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

java服务开始使用的自建的redis 将其迁移到腾讯云redis时报错 如下:
14:22:56.048 [localhost-startStop-1] ERROR o.s.web.context.ContextLoader:351 - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'enableRedisKeyspaceNotificationsInitializer' defined in class path resource [org/springframework/session/data/redis/config/annotation/web/http/RedisHttpSessionConfiguration.class]: Invocation of init method failed; nested exception is org.springframework.dao.InvalidDataAccessApiUsageException: ERR 'config' is disabled command; nested exception is redis.clients.jedis.exceptions.JedisDataException: ERR 'config' is disabled command
解决:

将redis 配置文件中 notify-keyspace-events改为 Egx



这篇关于自建redis迁移云报错的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程