若依-plus-vue启动显示Redis连接错误

用的Redis是windows版本,6.2.6

报错的主要信息如下:

Failed to instantiate [org.redisson.api.RedissonClient]: Factory method 'redisson' threw exception; nested exception is org.redisson.client.RedisConnectionException: Unable to connect to Redis server: 127.0.0.1/127.0.0.1:6379

org.redisson.client.RedisException: ERR AUTH <password> called without any password configured for the default user. Are you sure your configuration is correct?. channel: [id: 0x78c78239, L:/127.0.0.1:53460 - R:127.0.0.1/127.0.0.1:6379] command: (AUTH), params: (password masked)

开始排查使用Redis-cli进行测试:发现Redis启动正常:

自己用了一些其他的demo进行测试也是可以连接Redis的,使用Redis连接管理工具也是可以连接的,但是这个 若依-plus-vue 启动的时候就是报上面的错误。

解决方案:

把yaml文件中连接Redis 的配置的密码字段改为 auth,然后发现就可以了。

目前我也没搞明白,什么时候用password,什么时候用auth,我另一个demo项目,用的也是redis-windows-6.2.6, 但是使用password字段就可以连接。。。感觉与redis-starter的版本有关。

相关推荐
小马哥编程22 分钟前
【软件架构】数据库系统与缓存设计:五种缓存一致性方案
数据库·缓存
caimo25 分钟前
Java无法访问网址出现Timeout但是浏览器和Postman可以
java·开发语言·postman
Deamon Tree34 分钟前
ElasticSearch架构和写入、更新、删除、查询的底层逻辑
java·大数据·elasticsearch·架构
DemonAvenger41 分钟前
Redis持久化策略对比:RDB与AOF的最佳实践与场景选择
数据库·redis·性能优化
新手小白*1 小时前
Redis Sentinel哨兵集群
数据库·redis·sentinel
一 乐1 小时前
商城推荐系统|基于SprinBoot+vue的商城推荐系统(源码+数据库+文档)
前端·数据库·vue.js·spring boot·后端·商城推荐系统
北极糊的狐1 小时前
IntelliJ IDEA插件:CodeGeeX 智能助手插件
java·ide·intellij-idea
悟能不能悟1 小时前
jdk25结构化并发和虚拟线程如何配合使用?有什么最佳实践?
java·开发语言
边疆.1 小时前
【Linux】编辑器vim的使用和理解gcc编译器
linux·运维·服务器·编辑器·vim
z10_141 小时前
什么是住宅IP,住宅IP应用场景有哪些
linux·服务器·tcp/ip