Browse Source

更新配置

kongwz 5 years ago
parent
commit
b16ec9a98f

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

@@ -21,7 +21,7 @@ public class DriverManager {
     public static Driver newDrive() throws Exception {
     public static Driver newDrive() throws Exception {
         //            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"),
         if( driver == null){
         if( driver == null){
-            driver = GraphDatabase.driver(propertiesUtil.getProperty("bolt232.uri"), AuthTokens.basic(propertiesUtil.getProperty("bolt232.user"), propertiesUtil.getProperty("bolt232.passwd")),
+            driver = GraphDatabase.driver(propertiesUtil.getProperty("bolt.uri"), AuthTokens.basic(propertiesUtil.getProperty("bolt.user"), propertiesUtil.getProperty("bolt.passwd")),
                     Config.build().withMaxConnectionLifetime(ConnLifeTime, TimeUnit.MINUTES)
                     Config.build().withMaxConnectionLifetime(ConnLifeTime, TimeUnit.MINUTES)
                             .withMaxTransactionRetryTime(TransRetryTime, TimeUnit.SECONDS)
                             .withMaxTransactionRetryTime(TransRetryTime, TimeUnit.SECONDS)
                             .withMaxConnectionPoolSize(ConnPoolSize)
                             .withMaxConnectionPoolSize(ConnPoolSize)

+ 1 - 5
graph/src/main/resources/bolt.properties

@@ -5,14 +5,10 @@ pass_235 = diagbot@20180822
 
 
 # neo4j bolt credentials
 # neo4j bolt credentials
 #\u7EBF\u4E0A\u4F7F\u7528
 #\u7EBF\u4E0A\u4F7F\u7528
-bolt.uri=bolt://192.168.2.233
+bolt.uri=bolt://192.168.2.232
 bolt.user=neo4j
 bolt.user=neo4j
 bolt.passwd=root
 bolt.passwd=root
 
 
-#\u533B\u5B66\u672F\u8BED\u4F7F\u7528
-bolt232.uri=bolt://192.168.2.232
-bolt232.user=neo4j
-bolt232.passwd=root
 
 
 #\u6D4B\u8BD5\u4F7F\u7528
 #\u6D4B\u8BD5\u4F7F\u7528
 bolt112.uri=bolt://192.168.3.112
 bolt112.uri=bolt://192.168.3.112