Open
Description
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:
- Document how the bean names are generated
- Support a label that allows the bean name to be specified
- Support a label that allows a connection details bean to be marked as
@Primary
, with@Qualifier
,@Fallback
, etc.