Skip to content

When using Testcontainers at development time with @ServiceConnection on a @Bean method, describe when to use the name attribute and why #36071

@wilkinsona

Description

@wilkinsona

See #36064 and in particular #36064 (comment) for background. When using Testcontainers at development time with @ServiceConnection on a @Bean method, there's an increased need to use the name attribute of @ServiceConnection as the container instance isn't available for us to call getDockerImageName() on it. We should document this, describing when to use the name attribute and explaining why it's necessary.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions