Commit 6c174424 authored by Phillip Webb's avatar Phillip Webb

Merge pull request #4237 from awgtek/master

* pr/4237:
  Switch MongoCredential method
parents d5d6507e deaa9051
......@@ -217,8 +217,8 @@ public class MongoProperties {
if (hasCustomCredentials()) {
String database = this.authenticationDatabase == null
? getMongoClientDatabase() : this.authenticationDatabase;
credentials = Arrays.asList(MongoCredential.createMongoCRCredential(
this.username, database, this.password));
credentials = Arrays.asList(MongoCredential
.createCredential(this.username, database, this.password));
}
String host = this.host == null ? "localhost" : this.host;
int port = determinePort(environment);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment