Skip to content

Commit 1dc7fc8

Browse files
authored
match convention (#348)
1 parent cf4824e commit 1dc7fc8

File tree

1 file changed

+2
-2
lines changed
  • source/includes/fundamentals/code-snippets

1 file changed

+2
-2
lines changed

source/includes/fundamentals/code-snippets/srv.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
public class MongoClientConnectionExample {
1414
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";
15+
// Replace the placeholder with your Atlas connection string
16+
String uri = "<connection string>";
1717

1818
// Construct a ServerApi instance using the ServerApi.builder() method
1919
ServerApi serverApi = ServerApi.builder()

0 commit comments

Comments
 (0)