diff --git a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-cache/src/redisTest/java/smoketest/cache/SampleCacheApplicationRedisTests.java b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-cache/src/redisTest/java/smoketest/cache/SampleCacheApplicationRedisTests.java index fee509dde11..58b4559b07e 100644 --- a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-cache/src/redisTest/java/smoketest/cache/SampleCacheApplicationRedisTests.java +++ b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-cache/src/redisTest/java/smoketest/cache/SampleCacheApplicationRedisTests.java @@ -45,7 +45,7 @@ class SampleCacheApplicationRedisTests { @DynamicPropertySource static void redisProperties(DynamicPropertyRegistry properties) { - properties.add("spring.redis.url", + properties.add("spring.data.redis.url", () -> "redis://" + redis.getContainerIpAddress() + ":" + redis.getFirstMappedPort()); }