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
@@ -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);
|
||||
* }
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user