Skip to content

EmbeddedMongoAutoConfiguration should depend on bean by type #16540

@philwebb

Description

@philwebb

Currently the DependsOnBeanFactoryPostProcessor beans in EmbeddedMongoAutoConfiguration declare dependencies on a bean named "embeddedMongoServer". The @Bean method for embeddedMongoServer is @ConditionalOnMissingBean so it's possible that that a custom type will mean the name changes and the dependsOn check fails.

Se should probably check against MongodExecutable.cass instead.

See #16048 for background.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: supersededAn issue that has been superseded by anothertype: bugA general bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions