From 857d1b7a8a53432d716b5a034a5290a3296025aa Mon Sep 17 00:00:00 2001 From: chisanw Date: Tue, 25 Aug 2026 01:12:11 +0900 Subject: [PATCH] Fix typos in service connection documentation See gh-51431 Signed-off-by: chisanw --- .../testcontainers/service/connection/ServiceConnection.java | 2 +- .../antora/modules/reference/pages/testing/testcontainers.adoc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/spring-boot-testcontainers/src/main/java/org/springframework/boot/testcontainers/service/connection/ServiceConnection.java b/core/spring-boot-testcontainers/src/main/java/org/springframework/boot/testcontainers/service/connection/ServiceConnection.java index 9481e080801..22da865e98a 100644 --- a/core/spring-boot-testcontainers/src/main/java/org/springframework/boot/testcontainers/service/connection/ServiceConnection.java +++ b/core/spring-boot-testcontainers/src/main/java/org/springframework/boot/testcontainers/service/connection/ServiceConnection.java @@ -32,7 +32,7 @@ import org.springframework.core.annotation.AliasFor; * Indicates that a field or method is a {@link ContainerConnectionSource} which provides * a service that can be connected to. *

- * If the underling connection supports SSL, the {@link PemKeyStore @PemKeyStore}, + * If the underlying connection supports SSL, the {@link PemKeyStore @PemKeyStore}, * {@link PemTrustStore @PemTrustStore}, {@link JksKeyStore @JksKeyStore}, * {@link JksTrustStore @JksTrustStore}, {@link Ssl @Ssl} annotations may be used to * provide additional configuration. diff --git a/documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/testing/testcontainers.adoc b/documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/testing/testcontainers.adoc index 5348e057c15..71c69e4723f 100644 --- a/documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/testing/testcontainers.adoc +++ b/documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/testing/testcontainers.adoc @@ -223,7 +223,7 @@ Please note that you still have to enable SSL on the service which is running in include-code::MyRedisWithSslIntegrationTests[] -The above code uses the javadoc:org.springframework.boot.testcontainers.service.connection.PemKeyStore[format=annotation] annotation to load the client certificate and key into the keystore and the and javadoc:org.springframework.boot.testcontainers.service.connection.PemTrustStore[format=annotation] annotation to load the CA certificate into the truststore. +The above code uses the javadoc:org.springframework.boot.testcontainers.service.connection.PemKeyStore[format=annotation] annotation to load the client certificate and key into the keystore and the javadoc:org.springframework.boot.testcontainers.service.connection.PemTrustStore[format=annotation] annotation to load the CA certificate into the truststore. This will authenticate the client against the server, and the CA certificate in the truststore makes sure that the server certificate is valid and trusted. The `SecureRedisContainer` in this example is a custom subclass of `RedisContainer` which copies certificates to the correct places and invokes `redis-server` with commandline parameters enabling SSL.