Explorar el Código

修改数据库连接地址

kongwz hace 6 años
padre
commit
dd39e020ef
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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)