mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Revise Testcontainers examples based on feedback
Closes gh-29939
This commit is contained in:
+1
-2
@@ -71,8 +71,7 @@ import java.lang.annotation.Target;
|
||||
*
|
||||
* @Container
|
||||
* static GenericContainer redis =
|
||||
* new GenericContainer(DockerImageName.parse("redis:5.0.3-alpine"))
|
||||
* .withExposedPorts(6379);
|
||||
* new GenericContainer("redis:5.0.3-alpine").withExposedPorts(6379);
|
||||
*
|
||||
* // ...
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user