Skip to content

Commit e468225

Browse files
authored
Fix ssl enabled property
In Srping Boot 3.1, the flag is ssl.enbled not ssl, as in the java doc here: https://docs.spring.io/spring-boot/docs/3.1.8/api/org/springframework/boot/autoconfigure/data/redis/RedisProperties.Ssl.html#isEnabled()
1 parent 713fe11 commit e468225

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java-cfenv-boot/src/main/java/io/pivotal/cfenv/spring/boot/RedisCfEnvProcessor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public void process(CfCredentials cfCredentials, Map<String, Object> properties)
5858
Optional<String> tlsPort = Optional.ofNullable(cfCredentials.getString("tls_port"));
5959
if (tlsPort.isPresent()) {
6060
properties.put(PREFIX + ".port", tlsPort.get());
61-
properties.put(PREFIX + ".ssl", "true");
61+
properties.put(PREFIX + ".ssl.enabled", "true");
6262
} else {
6363
properties.put(PREFIX + ".port", cfCredentials.getPort());
6464
}
@@ -68,7 +68,7 @@ public void process(CfCredentials cfCredentials, Map<String, Object> properties)
6868
properties.put(PREFIX + ".port", uriInfo.getPort());
6969
properties.put(PREFIX + ".password", uriInfo.getPassword());
7070
if (uriInfo.getScheme().equals("rediss")) {
71-
properties.put(PREFIX + ".ssl", "true");
71+
properties.put(PREFIX + ".ssl.enabled", "true");
7272
}
7373
}
7474
}

0 commit comments

Comments
 (0)