We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf4824e commit 1dc7fc8Copy full SHA for 1dc7fc8
source/includes/fundamentals/code-snippets/srv.java
@@ -12,8 +12,8 @@
12
13
public class MongoClientConnectionExample {
14
public static void main(String[] args) {
15
- // Replace the placeholders with your credentials and hostname
16
- String uri = "mongodb+srv://<username>:<password>@<hostname>/?retryWrites=true&w=majority";
+ // Replace the placeholder with your Atlas connection string
+ String uri = "<connection string>";
17
18
// Construct a ServerApi instance using the ServerApi.builder() method
19
ServerApi serverApi = ServerApi.builder()
0 commit comments