Skip to content

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

Closed
@storyzero

Description

@storyzero

https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mongo/PropertiesMongoConnectionDetails.java#L51

I can't generate a connection string with mongodb+srv:// because PropertiesMongoConnectionDetails is hardcoded to use mongodb://
MongoProperties should be able to specify the protocol, and PropertiesMongoConnectionDetails should generate the connection string using the specified protocol.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: supersededAn issue that has been superseded by another

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions