|
@@ -19,8 +19,8 @@ public class DriverManager {
|
|
|
|
|
|
public static Driver newDrive() throws Exception{
|
|
public static Driver newDrive() throws Exception{
|
|
if (driver == null) {
|
|
if (driver == null) {
|
|
- 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"),
|
|
|
|
|
|
+// 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)
|
|
Config.build().withMaxConnectionLifetime(ConnLifeTime, TimeUnit.MINUTES)
|
|
.withMaxTransactionRetryTime(TransRetryTime, TimeUnit.SECONDS)
|
|
.withMaxTransactionRetryTime(TransRetryTime, TimeUnit.SECONDS)
|
|
.withMaxConnectionPoolSize(ConnPoolSize)
|
|
.withMaxConnectionPoolSize(ConnPoolSize)
|