From 523164127d6eb3c6e4a9112597e87c2aefbe64b9 Mon Sep 17 00:00:00 2001 From: jiangjiazhi Date: Mon, 25 Apr 2016 14:00:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/spring/spring-mongodb-old.xml | 54 +++++++++++++++ .../src/main/resources/spring/spring-mongodb.xml | 79 +++++++++------------- platform-resource/resources/config-dev.properties | 12 +++- platform-resource/resources/config-test.properties | 11 +++ 4 files changed, 107 insertions(+), 49 deletions(-) create mode 100644 platform-operate-api/src/main/resources/spring/spring-mongodb-old.xml diff --git a/platform-operate-api/src/main/resources/spring/spring-mongodb-old.xml b/platform-operate-api/src/main/resources/spring/spring-mongodb-old.xml new file mode 100644 index 0000000..32cd518 --- /dev/null +++ b/platform-operate-api/src/main/resources/spring/spring-mongodb-old.xml @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/platform-operate-api/src/main/resources/spring/spring-mongodb.xml b/platform-operate-api/src/main/resources/spring/spring-mongodb.xml index 8ac6fbe..82db3b3 100644 --- a/platform-operate-api/src/main/resources/spring/spring-mongodb.xml +++ b/platform-operate-api/src/main/resources/spring/spring-mongodb.xml @@ -1,54 +1,39 @@ - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/platform-resource/resources/config-dev.properties b/platform-resource/resources/config-dev.properties index fddab0c..a93eb8f 100644 --- a/platform-resource/resources/config-dev.properties +++ b/platform-resource/resources/config-dev.properties @@ -1,7 +1,15 @@ mongo.db.host=localhost mongo.db.port=27017 -mongo.db.dbname=platform - +mongo.db.dbname=platform1 +mongo.db.username=platform +mongo.db.password=platform123 +mongo.socketTimeout=1000 +mongo.connectionsPerHost=20 +mongo.threadsAllowedToBlockForConnectionMultiplier=10 +mongo.connectTimeout=1000 +mongo.maxWaitTime=2000 +mongo.autoConnectRetry=true +mongo.socketKeepAlive=true mysql.db.name=platform mysql.db.password=platform123 diff --git a/platform-resource/resources/config-test.properties b/platform-resource/resources/config-test.properties index 06832c3..7aa63db 100644 --- a/platform-resource/resources/config-test.properties +++ b/platform-resource/resources/config-test.properties @@ -2,6 +2,17 @@ mongo.db.host=localhost mongo.db.port=10001 mongo.db.dbname=platform +mongo.db.username=platform +mongo.db.password=platform123 +mongo.socketTimeout=1000 +mongo.connectionsPerHost=20 +mongo.threadsAllowedToBlockForConnectionMultiplier=10 +mongo.connectTimeout=1000 +mongo.maxWaitTime=2000 +mongo.autoConnectRetry=true +mongo.socketKeepAlive=true + + mysql.db.name=platform mysql.db.password=platform123 -- 1.8.3.1