emos-api中的mongodb和redis问题

来源:2-3 运行后端SpringBoot项目(上)

AngeloZhang

2022-01-26

org.springframework.data.mongodb.UncategorizedMongoDbException: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-256, userName=‘root’, source=‘admin’, password=, mechanismProperties=}; nested exception is com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-256, userName=‘root’, source=‘admin’, password=, mechanismProperties=}

Caused by: com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-256, userName=‘root’, source=‘admin’, password=, mechanismProperties=}

Caused by: java.lang.IllegalArgumentException: Prohibited character at position 0

org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to localhost/:6379

Caused by: io.lettuce.core.RedisConnectionException: Unable to connect to localhost/:6379

Caused by: io.lettuce.core.RedisCommandExecutionException: ERR Client sent AUTH, but no password is set

写回答

1回答

神思者

2022-01-27

你用的不是课程附带的MongoDB和Redis吧

0
2
神思者
回复
AngeloZhang
你自己MongoDB创建用户分配权限不对吧
2022-01-27
共2条回复

SpringBoot+Vue3 项目实战,打造企业级在线办公系统

以业务为基础,贯穿前后端技术栈,获得企业级项目开发经验

2231 学习 · 1257 问题

查看课程