diff --git a/database/neo4j/src/main/java/com/neueda/jetbrains/plugin/graphdb/database/neo4j/bolt/Neo4jBoltDatabase.java b/database/neo4j/src/main/java/com/neueda/jetbrains/plugin/graphdb/database/neo4j/bolt/Neo4jBoltDatabase.java index c62898e0..913a1fbd 100644 --- a/database/neo4j/src/main/java/com/neueda/jetbrains/plugin/graphdb/database/neo4j/bolt/Neo4jBoltDatabase.java +++ b/database/neo4j/src/main/java/com/neueda/jetbrains/plugin/graphdb/database/neo4j/bolt/Neo4jBoltDatabase.java @@ -28,7 +28,11 @@ public Neo4jBoltDatabase(Neo4jBoltConfiguration configuration) { Integer port = configuration.getPort(); String username = configuration.getUser(); String password = configuration.getPassword(); - this.url = String.format("bolt://%s:%s", host, port); + if (host.startsWith("bolt://") || host.startsWith("bolt+routing://")) { + this.url = String.format("%s:%s", host, port); + } else { + this.url = String.format("bolt://%s:%s", host, port); + } if (username != null && password != null) { auth = AuthTokens.basic(username, password); } else {