Browse Source

修改数据库连接地址

kongwz 6 years ago
parent
commit
dd39e020ef
1 changed files with 2 additions and 1 deletions
  1. 2 1
      graph/src/main/java/org/diagbot/graph/jdbc/DriverManager.java

+ 2 - 1
graph/src/main/java/org/diagbot/graph/jdbc/DriverManager.java

@@ -19,7 +19,8 @@ public class DriverManager {
 
     public static Driver newDrive() throws Exception{
         if (driver == null) {
-            driver = GraphDatabase.driver("bolt://192.168.3.112:7687", AuthTokens.basic("neo4j", "123456"),
+//            driver = GraphDatabase.driver("bolt://192.168.3.112:7687", AuthTokens.basic("neo4j", "123456"),
+            driver = GraphDatabase.driver("bolt://192.168.2.233:7687", AuthTokens.basic("neo4j", "root"),
                     Config.build().withMaxConnectionLifetime(ConnLifeTime, TimeUnit.MINUTES)
                             .withMaxTransactionRetryTime(TransRetryTime, TimeUnit.SECONDS)
                             .withMaxConnectionPoolSize(ConnPoolSize)