Skip to content

Commit da996ae

Browse files
committed
Refactor Couchbase Capella connection instructions in Java tutorial for clarity. Removed redundant notes, corrected typos, and improved formatting for better readability.
1 parent c253bf7 commit da996ae

File tree

1 file changed

+4
-21
lines changed

1 file changed

+4
-21
lines changed

tutorial/markdown/java/transactions.md

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -158,26 +158,10 @@ spring.couchbase.bucket.password=password
158158
> **_NOTE:_** Couchbase Capella clusters are using Transport Security Layer (TLS) cryptographic protocol to secure traffic between the cluster and client applications.
159159
> For simplicity, we will forego certificate validation step in this tutorial.
160160
> It is highly recommended to always verify your cluster's certificate on production environments.
161-
162-
<<<<<<< HEAD
163-
> **_NOTE:_** Couchbase Capepella clusters are using Transport Security Layer (TLS) cryptographic protocol to secure traffic between the cluster and client applications.
164-
Every Capella cluster comes with its own self-signed TLS certificate.
165-
This certificate can be used by client applications to verify the identity of the server and prevent attackers from intercepting database traffic.
166-
It is highly recommended to always verify your cluster's certificate on production environments.
167-
Please refer to "Full Example / Couchbase Capella Sample" and "Cloud Connections" sections of [Install and Start Using the Java SDK with Couchbase Server](https://docs.couchbase.com/java-sdk/current/hello-world/start-using-sdk.html#full-example) for information on how to validate cluster certificates.
168-
169-
To connect to Capella, use `couchbases://` connection protocol and add `?tls=no_verify` to the connection string:
170-
171-
```ini
172-
spring.couchbase.bootstrap-hosts=couchbases://cb.jncm2s9gv4ealbm.cloud.couchbase.com?ssl=no_veriify
173-
```
174-
175-
Save the file and start the sample application by running the following command in the root folder of the project:
176-
=======
177161
> Please refer to "Full Example / Couchbase Capella Sample" and "Cloud Connections" sections of [Install and Start Using the Java SDK with Couchbase Server](https://docs.couchbase.com/java-sdk/current/hello-world/start-using-sdk.html#full-example) for information on how to validate cluster certificates.
178162
179163

180-
To confiure Capella connections, use a `ClusterEnvironment` with enabled TLS security:
164+
To configure Capella connections, use a `ClusterEnvironment` with enabled TLS security:
181165

182166
```java
183167
@Bean
@@ -191,7 +175,7 @@ To confiure Capella connections, use a `ClusterEnvironment` with enabled TLS sec
191175

192176
public ClusterEnvironment getClusterEnvironment() {
193177
ClusterEnvironment.Builder environmentBuilder = ClusterEnvironment.builder();
194-
178+
195179
SecurityConfig.Builder securityConfig = SecurityConfig.enableTls(true)
196180
.trustManagerFactory(InsecureTrustManagerFactory.INSTANCE);
197181
environmentBuilder.securityConfig(securityConfig);
@@ -200,15 +184,14 @@ To confiure Capella connections, use a `ClusterEnvironment` with enabled TLS sec
200184
}
201185
```
202186

203-
Another alternative is to use`couchbases://` connection protocol and add `?ssl=no_verify` to the connection string:
187+
Another alternative is to use `couchbases://` connection protocol and add `?ssl=no_verify` to the connection string:
204188
```ini
205189
spring.couchbase.bootstrap-hosts=couchbases://cb.jnym5s9gv4ealbe.cloud.couchbase.com?ssl=no_verify
206190
```
207191

208-
> **_NOTE_**: these Capella connection confguration examples should be used for development purposes only and are not recommended for production.
192+
> **_NOTE_**: these Capella connection configuration examples should be used for development purposes only and are not recommended for production.
209193
210194
Save your customized configuration and start the sample application by running the following command in the root folder of the project:
211-
>>>>>>> 066839e6fbc8c2f00fa28c21cd9a4472abeb62f1
212195

213196
```shell
214197
mvn spring-boot:run

0 commit comments

Comments
 (0)