Skip to content

Bootstrap mode not configurable #3879

@SAJLinders

Description

@SAJLinders

While working on a project I came across the requirement where a connection to a MongoDB database should not be opened until we absolutely must. Looking around online as to what's available I came across the BootstrapMode enumeration. For JPA repositories this can be set in the following way:

spring.data.jpa.repositories.bootstrap-mode: lazy

As far as I can tell though, this is not available for Mongo repositories. Instead it always uses the DEFAULT bootstrapping mode. Is this intended or is there a way to change the bootstrapping mode that I just happened to have overlooked?

We are using spring-boot-starter-data-mongodb version 2.3.4.RELEASE.

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: external-projectFor an external project and not something we can fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions