Skip to content

Commit

Permalink
Clarify which Spring modules are involved in support of Testcontainers
Browse files Browse the repository at this point in the history
Co-authored-by: Eddú Meléndez Gonzales <[email protected]>
Signed-off-by: thecooldrop <[email protected]>
  • Loading branch information
thecooldrop and eddumelendez authored Feb 12, 2025
1 parent 36b961f commit 7f25b4f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ In this case the lifecycle of the container instance is managed by Testcontainer

== Using via Spring managed beans

The containers provided by Testcontainers framework can be managed by Spring Boot as beans.
Spring Boot supports Testcontainers modules, see the list [here](https://docs.spring.io/spring-boot/reference/testing/testcontainers.html#testing.testcontainers.service-connections)
This method is often used in combination with javadoc:org.springframework.boot.testcontainers.service.connection.ServiceConnection[format=annotation].

To use Testcontainer contains as Spring beans we need to create a configuration class declaring the container as bean:
Expand Down

0 comments on commit 7f25b4f

Please sign in to comment.