spring:
redis:
host: xxxxxx.redis.cache.chinacloudapi.cn
port: 6380
password: xxxxxxxxxxxxxxxxxxxxxxxxxxx
timeout: 5000ms
ssl: true
配置文件的配置,注意需不需要ssl=true。
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'enableRedisKeyspaceNotificationsInitializer' defined in org.springframework.session.data.redis.config.annotation.web.http.RedisHttpSessionConfiguration: Invocation of init

在尝试使用SpringBoot连接Azure Redis时遇到'ERR unknown command 'config''的错误。问题源于Azure Redis不支持'config'命令。通过查阅资料并修改配置,避免执行此命令,成功解决了问题。
最低0.47元/天 解锁文章

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



