-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
for: external-projectFor an external project and not something we can fixFor an external project and not something we can fix
Description
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
Labels
for: external-projectFor an external project and not something we can fixFor an external project and not something we can fix