REDIS-springboot连接不上redis

问题描述:
org.springframework.dao.InvalidDataAccessApiUsageException: DENIED Redis is running in protected 
mode because protected mode is enabled

问题原因:
启动redis时,默认以保护模式运行,需要将保护模式关闭

解决方法:
1.修改redis.conf文件,修改:protected-mode no
2.启动redis,./redis-server redis.conf

猜你喜欢

转载自blog.csdn.net/ignorewho/article/details/80592727