瀏覽代碼

修改数据库连接地址

kongwz 6 年之前
父節點
當前提交
dd39e020ef
共有 1 個文件被更改,包括 2 次插入1 次删除
  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)