Skip to content
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

Introduce spring.data.mongodb.protocol to allow the MongoDB protocol to be customized when not using spring.data.mongodb.uri #44366

Closed
wants to merge 1 commit into from

Conversation

nosan
Copy link
Contributor

@nosan nosan commented Feb 19, 2025

See gh-43851

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Feb 19, 2025
@nosan nosan force-pushed the 43851 branch 5 times, most recently from a51cf6c to 0c4e77d Compare February 22, 2025 08:31
This commit allows configuring the MongoDB connection
protocol using the 'spring.data.mongodb.protocol' property.

See spring-projectsgh-43851

Signed-off-by: Dmytro Nosan <dimanosan@gmail.com>
@@ -51,6 +51,11 @@ public class MongoProperties {
*/
public static final String DEFAULT_URI = "mongodb://localhost/test";

/**
* Protocol to be used for the MongoDB connection. Ignored if 'uri' is set.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was just looking at this and laughed that it matches the polish I've made in 44384. What a coincidence! Nope, you forced push to adapt... You really didn't have to do it, thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed that you've merged #44384 and checked what phrasing was used to update this change accordingly.

@mhalbritter mhalbritter added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Feb 25, 2025
@mhalbritter mhalbritter added this to the 3.5.x milestone Feb 25, 2025
@mhalbritter mhalbritter self-assigned this Feb 25, 2025
mhalbritter pushed a commit that referenced this pull request Feb 25, 2025
This commit allows configuring the MongoDB connection
protocol using the 'spring.data.mongodb.protocol' property.

See gh-44366

Signed-off-by: Dmytro Nosan <dimanosan@gmail.com>
@mhalbritter mhalbritter changed the title Add spring.data.mongodb.protocol property Introduce spring.data.mongodb.protocol to allow the MongoDB protocol to be customized when not using spring.data.mongodb.uri Feb 25, 2025
@mhalbritter mhalbritter modified the milestones: 3.5.x, 3.5.0-M3 Feb 25, 2025
@mhalbritter
Copy link
Contributor

Thanks @nosan !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants