Skip to content

Commit 0559fac

Browse files
committed
use neo4j+s protocol
1 parent 727b644 commit 0559fac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/src/main/java/org/neo4j/docs/driver/DriverIntroductionExample.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public void findPerson(final String personName) {
9797
}
9898

9999
public static void main(String... args) throws Exception {
100-
// Aura uses the "neo4j" protocol
100+
// Aura queries use an encrypted connection using the "neo4j+s" protocol
101101
String boltUrl = "%%BOLT_URL_PLACEHOLDER%%";
102102

103103
String user = "<Username for Neo4j Aura database>";
@@ -106,7 +106,7 @@ public static void main(String... args) throws Exception {
106106
// Aura queries use an encrypted connection
107107
Config config = Config.builder().withEncryption().build();
108108

109-
try (DriverIntroductionExample app = new DriverIntroductionExample(boltUrl, user, password, config)) {
109+
try (DriverIntroductionExample app = new DriverIntroductionExample(boltUrl, user, password, Config.defaultConfig())) {
110110
app.createFriendship("Alice", "David");
111111
app.findPerson("Alice");
112112
}

0 commit comments

Comments
 (0)