Use getHost instead of getContainerIpAddress in Redis examples

getContainerIpAddress is deprecated.

Closes gh-28461
This commit is contained in:
Eddú Meléndez Gonzales
2022-05-15 08:12:03 -05:00
committed by GitHub
parent 3d39dfc4ce
commit 506b78f469
2 changed files with 3 additions and 3 deletions

View File

@@ -76,7 +76,7 @@ import java.lang.annotation.Target;
*
* @DynamicPropertySource
* static void redisProperties(DynamicPropertyRegistry registry) {
* registry.add("redis.host", redis::getContainerIpAddress);
* registry.add("redis.host", redis::getHost);
* registry.add("redis.port", redis::getMappedPort);
* }
*

View File

@@ -4295,7 +4295,7 @@ properties.
@DynamicPropertySource
static void redisProperties(DynamicPropertyRegistry registry) {
registry.add("redis.host", redis::getContainerIpAddress);
registry.add("redis.host", redis::getHost);
registry.add("redis.port", redis::getMappedPort);
}
@@ -4319,7 +4319,7 @@ properties.
@DynamicPropertySource
@JvmStatic
fun redisProperties(registry: DynamicPropertyRegistry) {
registry.add("redis.host", redis::getContainerIpAddress)
registry.add("redis.host", redis::getHost)
registry.add("redis.port", redis::getMappedPort)
}
}