Skip to content

Commit f7b23f5

Browse files
committed
Merge branch '3.3.x' into 3.4.x
Closes gh-44404
2 parents 397ded2 + acfdd11 commit f7b23f5

File tree

1 file changed

+7
-7
lines changed
  • spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mongo

1 file changed

+7
-7
lines changed

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

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2023 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -52,17 +52,17 @@ public class MongoProperties {
5252
public static final String DEFAULT_URI = "mongodb://localhost/test";
5353

5454
/**
55-
* Mongo server host. Cannot be set with URI.
55+
* Mongo server host. Ignored if 'uri' is set.
5656
*/
5757
private String host;
5858

5959
/**
60-
* Mongo server port. Cannot be set with URI.
60+
* Mongo server port. Ignored if 'uri' is set.
6161
*/
6262
private Integer port = null;
6363

6464
/**
65-
* Additional server hosts. Cannot be set with URI or if 'host' is not specified.
65+
* Additional server hosts. Ignored if 'uri' is set or if 'host' is omitted.
6666
* Additional hosts will use the default mongo port of 27017. If you want to use a
6767
* different port you can use the "host:port" syntax.
6868
*/
@@ -86,17 +86,17 @@ public class MongoProperties {
8686
private final Gridfs gridfs = new Gridfs();
8787

8888
/**
89-
* Login user of the mongo server. Cannot be set with URI.
89+
* Login user of the mongo server. Ignored if 'uri' is set.
9090
*/
9191
private String username;
9292

9393
/**
94-
* Login password of the mongo server. Cannot be set with URI.
94+
* Login password of the mongo server. Ignored if 'uri' is set.
9595
*/
9696
private char[] password;
9797

9898
/**
99-
* Required replica set name for the cluster. Cannot be set with URI.
99+
* Required replica set name for the cluster. Ignored if 'uri' is set.
100100
*/
101101
private String replicaSetName;
102102

0 commit comments

Comments
 (0)