mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Merge branch '2.7.x'
Closes gh-32137
This commit is contained in:
commit
b19f1cedb3
@ -45,8 +45,7 @@ class SampleCacheApplicationRedisTests {
|
|||||||
|
|
||||||
@DynamicPropertySource
|
@DynamicPropertySource
|
||||||
static void redisProperties(DynamicPropertyRegistry properties) {
|
static void redisProperties(DynamicPropertyRegistry properties) {
|
||||||
properties.add("spring.data.redis.url",
|
properties.add("spring.data.redis.url", () -> "redis://" + redis.getHost() + ":" + redis.getFirstMappedPort());
|
||||||
() -> "redis://" + redis.getContainerIpAddress() + ":" + redis.getFirstMappedPort());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Loading…
Reference in New Issue
Block a user