Use getHost instead of getContainerIpAddress in Redis examples
getContainerIpAddress is deprecated. Closes gh-28461
This commit is contained in:
committed by
GitHub
parent
3d39dfc4ce
commit
506b78f469
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user