Fix typos in service connection documentation

See gh-51431

Signed-off-by: chisanw <keuye06380618@gmail.com>
This commit is contained in:
chisanw
2026-08-25 12:07:13 -07:00
committed by Phillip Webb
parent a5e2fb3148
commit 857d1b7a8a
2 changed files with 2 additions and 2 deletions
@@ -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.
* <p>
* 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.
@@ -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.