Skip to content

Remove Spring Data MongoDB dependency from MongoDB health support #47051

Closed

Description

@wilkinsona

MongoHealthIndicator and MongoReactiveHealthIndicator are both in spring-boot-data-mongodb because they use MongoTemplate and ReactiveMongoTemplate respectively. However, their use of the templates is really light and I think could be reworked to use the MongoDB Java Driver directly. Both could then move into spring-boot-mongodb.

If removing the Data dependency proves harder than anticipated, we should review the property name. After #47050 it will be management.health.mongodb.enabled. Should it be management.health.data.mongodb.enabled instead?

Activity

  1. added this to the 4.0.x milestone on Sep 5, 2025
  2. added
    type: enhancement
    status: pending-design-work
    on Sep 5, 2025
  3. changed the title [-]Consider removing Spring Data MongoDB dependency from MongoDB health support[/-] [+]Remove Spring Data MongoDB dependency from MongoDB health support[/+] on Sep 5, 2025
  4. self-assigned this
    on Sep 5, 2025
  5. removed
    status: pending-design-work
    on Sep 5, 2025
  6. modified the milestones: 4.0.x, 4.0.0-M3 on Sep 5, 2025
  7. added a commit that references this issue on Sep 5, 2025
    8d2c090
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type: enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions