Skip to content

Make it easier to consume multiple connection details beans of the same type with Docker Compose #42746

Open
@wilkinsona

Description

@wilkinsona

If you define multiple services of the same type in your Docker Compose yaml, you'll get multiple connection details beans of the same type in the context. Those beans are hard to inject as you can't just rely on the type. Matching by name is possible, but we don't document how the names are generated.

Some things that we could do:

  1. Document how the bean names are generated
  2. Support a label that allows the bean name to be specified
  3. Support a label that allows a connection details bean to be marked as @Primary, with @Qualifier, @Fallback, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions