Skip to content

Commit 5278bac

Browse files
committed
Polish
1 parent 0d61f92 commit 5278bac

File tree

1 file changed

+2
-3
lines changed
  • spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mongo

1 file changed

+2
-3
lines changed

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mongo/MongoProperties.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,8 @@ public String getMongoClientDatabase() {
191191

192192
/**
193193
* Creates a {@link MongoClient} using the given {@code options} and
194-
* {@code environment}. If the configured port is zero, the value of the
195-
* {@code local.mongo.port} property retrieved from the {@code environment} is used to
196-
* configure the client.
194+
* {@code environment}. If the environment contains a {@code local.mongo.port}
195+
* property, it is used to configure a client to an embedded MongoDB instance.
197196
* @param options the options
198197
* @param environment the environment
199198
* @return the Mongo client

0 commit comments

Comments
 (0)