com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=null, userName=‘root’, source=‘admin’, password=<hidden> 连接不上mongodb的解决方法: 修改application.yml文件,在mongodb的uri后面加上要连接的数据库名即可