|
@@ -35,7 +35,9 @@ public class MongoTemplateConfig {
|
|
|
builder.applyToClusterSettings(settings -> {
|
|
|
settings.hosts(Lists.newArrayList(
|
|
|
new ServerAddress(properties.getClusterHost(), properties.getClusterPort()),
|
|
|
- new ServerAddress(properties.getSecondaryHost(), properties.getSecondaryPort())));
|
|
|
+ new ServerAddress(properties.getSecondaryHost(), properties.getSecondaryPort()),
|
|
|
+ new ServerAddress(properties.getThirdHost(), properties.getThirdPort()),
|
|
|
+ new ServerAddress(properties.getFourthHost(), properties.getFourthPort())));
|
|
|
});
|
|
|
|
|
|
|