请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

emos-api中的mongodb和redis问题

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

正在回答 回答被采纳积分+3

1回答

神思者 2022-01-27 10:09:43

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

0 回复 有任何疑惑可以回复我~
  • 提问者 AngeloZhang #1
    对,redis的问题已经解决,为什么配置我自己的MongoDB的数据库会报错,改成您的就没问题
    回复 有任何疑惑可以回复我~ 2022-01-27 15:24:55
  • 神思者 回复 提问者 AngeloZhang #2
    你自己MongoDB创建用户分配权限不对吧
    回复 有任何疑惑可以回复我~ 2022-01-27 18:39:32
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信