-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Allow multiple hosts to be set in MongoProperties #32125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow multiple hosts to be set in MongoProperties #32125
Conversation
Currently MongoProperties allow only single host to be set in the MongoProperties. With this commit a set of 'additional hosts' can be set along with the base host/port. This closes spring-projects#32113
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @thegeekyasian, I've added a few review comments for you to consider.
...utoconfigure/src/main/java/org/springframework/boot/autoconfigure/mongo/MongoProperties.java
Outdated
Show resolved
Hide resolved
...springframework/boot/autoconfigure/mongo/MongoPropertiesClientSettingsBuilderCustomizer.java
Show resolved
Hide resolved
...boot-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json
Outdated
Show resolved
Hide resolved
Thanks for the feedback @philwebb, agreed upon the points mentioned and the suggested changes have been done. Ready for a review |
Update `MongoProperties` with an `additional-hosts` property which can be used to configure MongoDB in a multi-host environment. See gh-32125
Thanks for the updates @thegeekyasian. This has now been merged to |
Currently MongoProperties allow only single host to be set in the MongoProperties.
With this commit a set of 'additional hosts' can be set along with the base host/port.
This closes #32113