0
点赞
收藏
分享

微信扫一扫

org.springframework.data.mongodb.UncategorizedMongoDbException: Exception authenticating MongoCreden

楚木巽 2022-04-13 阅读 90
mongodb

1、springboot连接mongodb5报错org.springframework.data.mongodb.UncategorizedMongoDbException: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-256, userName='xxx', source='xxx', password=<hidden>, mechanismProperties=<hidden>}; nested exception is com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-256, userName='xxx', source='xxx', password=<hidden>, mechanismProperties=<hidden>}

2、修改配置,加上authentication-database: admin即可解决

举报

相关推荐

0 条评论