summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <default@DESKTOP-7FEGRP2>2018-11-15 19:46:57 +0800
committerdefault <default@DESKTOP-7FEGRP2>2018-11-15 19:46:57 +0800
commit1e0aa215e14eb21fcd9e73b87b2c45248ad0c953 (patch)
treec321b9b556ca7277a970ecdbb1350fb94af8f245
parent790eb66756071703cc3cef372074e314732c2450 (diff)
update
-rw-r--r--nms_sync/bin/db.properties4
-rw-r--r--nms_sync/conf/db.properties4
-rw-r--r--nms_sync/src/com/nms/main/Conn.java2
3 files changed, 2 insertions, 8 deletions
diff --git a/nms_sync/bin/db.properties b/nms_sync/bin/db.properties
index 03d54fb..69071e9 100644
--- a/nms_sync/bin/db.properties
+++ b/nms_sync/bin/db.properties
@@ -14,6 +14,4 @@ dbMaxActive=2
#\u6700\u5c0f\u8fde\u63a5\u6570
dbMinIdle=1
#\u6700\u5927\u7b49\u5f85\u8fde\u63a5\u65f6\u95f4
-dbMaxWait=60000
-#\u8bbe\u7f6e\u8d85\u8fc7\u65f6\u95f4\u56de\u6536\u8fde\u63a5
-dbRemoveAbandonedTimeout=1800 \ No newline at end of file
+dbMaxWait=60000 \ No newline at end of file
diff --git a/nms_sync/conf/db.properties b/nms_sync/conf/db.properties
index 03d54fb..69071e9 100644
--- a/nms_sync/conf/db.properties
+++ b/nms_sync/conf/db.properties
@@ -14,6 +14,4 @@ dbMaxActive=2
#\u6700\u5c0f\u8fde\u63a5\u6570
dbMinIdle=1
#\u6700\u5927\u7b49\u5f85\u8fde\u63a5\u65f6\u95f4
-dbMaxWait=60000
-#\u8bbe\u7f6e\u8d85\u8fc7\u65f6\u95f4\u56de\u6536\u8fde\u63a5
-dbRemoveAbandonedTimeout=1800 \ No newline at end of file
+dbMaxWait=60000 \ No newline at end of file
diff --git a/nms_sync/src/com/nms/main/Conn.java b/nms_sync/src/com/nms/main/Conn.java
index 66bc9f4..ae9ef6f 100644
--- a/nms_sync/src/com/nms/main/Conn.java
+++ b/nms_sync/src/com/nms/main/Conn.java
@@ -30,8 +30,6 @@ public class Conn {
druid.setMaxActive(Integer.valueOf(PropKit.get("dbMaxActive")));
druid.setMinIdle(Integer.valueOf(PropKit.get("dbMinIdle")));
druid.setMaxWait(Integer.valueOf(PropKit.get("dbMaxWait")));
- druid.setRemoveAbandoned(true);
- druid.setRemoveAbandonedTimeoutMillis(Integer.valueOf(PropKit.get("dbRemoveAbandonedTimeout")));
ActiveRecordPlugin arp=new ActiveRecordPlugin(url,druid);
arp.setShowSql(true);
druid.start();