Commit 44e1d66c3da9dd999aef3d22227a8c29db15f9f9

Authored by jiangjiazhi
1 parent cf8d22544f

增加配置

Showing 2 changed files with 35 additions and 20 deletions

platform-operate-api/src/main/resources/database.properties View file @ 44e1d66
... ... @@ -8,20 +8,14 @@
8 8 mongo.db.username=${mongo.db.username}
9 9 mongo.db.password=${mongo.db.password}
10 10  
11   -
12   -
13   -mongo.connectionsPerHost=8
14   -mongo.threadsAllowedToBlockForConnectionMultiplier=4
15   -mongo.connectTimeout=1000
16   -mongo.maxWaitTime=1500
17   -mongo.autoConnectRetry=true
18   -mongo.socketKeepAlive=true
19   -mongo.socketTimeout=1500
20   -mongo.slaveOk=true
21   -mongo.username=***
22   -mongo.password=***
23   -mongo.dbname=platform
24   -
  11 +mongo.connectionsPerHost=${mongo.connectionsPerHost}
  12 +mongo.threadsAllowedToBlockForConnectionMultiplier=${mongo.threadsAllowedToBlockForConnectionMultiplier}
  13 +mongo.connectTimeout=${mongo.connectTimeout}
  14 +mongo.maxWaitTime=${mongo.maxWaitTime}
  15 +mongo.autoConnectRetry=${mongo.autoConnectRetry}
  16 +mongo.socketKeepAlive=${mongo.socketKeepAlive}
  17 +mongo.socketTimeout=${mongo.socketTimeout}
  18 +mongo.slaveOk=${mongo.slaveOk}
25 19  
26 20  
27 21  
platform-resource/resources/config-product.properties View file @ 44e1d66
1   -mongo.db.host=localhost
2   -mongo.db.port=27017
3   -mongo.db.dbname=dev_mongo
  1 +mongo.db.port=27018
  2 +mongo.db.host=192.168.1.41
  3 +mongo.db.dbname=platform
  4 +mongo.db.username=platform
  5 +mongo.db.password=platform123
4 6  
5 7  
6   -mysql.db.name=prod
7   -mysql.db.password=prod
  8 +mongo.connectionsPerHost=50
  9 +mongo.threadsAllowedToBlockForConnectionMultiplier=4
  10 +mongo.connectTimeout=1000
  11 +mongo.maxWaitTime=1500
  12 +mongo.autoConnectRetry=true
  13 +mongo.socketKeepAlive=true
  14 +mongo.socketTimeout=1500
  15 +mongo.slaveOk=true
  16 +
  17 +mysql.db.name=platform
  18 +mysql.db.password=platform123
8 19 mysql.driver=com.mysql.jdbc.Driver
9   -mysql.jdbcurl=jdbc:mysql://192.168.5.250:3306/mommybaby?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8
  20 +mysql.jdbcurl=jdbc:mysql://192.168.1.39:3306/platform?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8
10 21  
11 22 mysql.maxpoolsize=5
12 23 mysql.initialpoolsize=2
13 24 mysql.minpoolsize=2
  25 +
  26 +
  27 +redis.servers=192.168.1.43:6379:Lyms@2016
  28 +
  29 +token.prefix=member
  30 +
  31 +
  32 +
  33 +login.typeId=2
  34 +login.token=265a841b-9bb5-434a-8c2b-e78df86fc45d