|
|
|
@ -3,13 +3,16 @@ spring:
|
|
|
|
|
data:
|
|
|
|
|
mongodb:
|
|
|
|
|
database: makesoft
|
|
|
|
|
# host: 39.108.144.227
|
|
|
|
|
host: 118.31.7.2
|
|
|
|
|
# host: 39.108.144.227
|
|
|
|
|
# port: 1471
|
|
|
|
|
host: 120.78.220.29
|
|
|
|
|
port: 27017
|
|
|
|
|
# username: makesoft
|
|
|
|
|
username: root
|
|
|
|
|
# password: makesoft
|
|
|
|
|
password: root
|
|
|
|
|
username: makesoft
|
|
|
|
|
password: makesoft
|
|
|
|
|
# host: 118.31.7.2
|
|
|
|
|
# port: 27017
|
|
|
|
|
# username: root
|
|
|
|
|
# password: root
|
|
|
|
|
#elasticsearch:
|
|
|
|
|
#rest:
|
|
|
|
|
#uris: http://39.108.144.227:9200
|
|
|
|
@ -20,12 +23,15 @@ spring:
|
|
|
|
|
druid:
|
|
|
|
|
# 主库数据源
|
|
|
|
|
master:
|
|
|
|
|
url: jdbc:mysql://120.78.220.29:3306/makesoft?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
|
|
|
|
username: root
|
|
|
|
|
password: Biemo123
|
|
|
|
|
# url: jdbc:mysql://39.108.144.227:1637/makesoft?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
|
|
|
|
# username: root
|
|
|
|
|
# password: Biemo123
|
|
|
|
|
url: jdbc:mysql://118.31.7.2:3306/makesoft?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
|
|
|
|
username: root
|
|
|
|
|
password: sztzjy2017
|
|
|
|
|
# url: jdbc:mysql://118.31.7.2:3306/makesoft?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
|
|
|
|
# username: root
|
|
|
|
|
# password: sztzjy2017
|
|
|
|
|
# 从库数据源
|
|
|
|
|
slave:
|
|
|
|
|
# 从数据源开关/默认关闭
|
|
|
|
@ -40,13 +46,13 @@ spring:
|
|
|
|
|
# 最大连接池数量
|
|
|
|
|
maxActive: 20
|
|
|
|
|
# 配置获取连接等待超时的时间
|
|
|
|
|
maxWait: 60000
|
|
|
|
|
maxWait: 120000
|
|
|
|
|
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
|
|
|
|
|
timeBetweenEvictionRunsMillis: 60000
|
|
|
|
|
timeBetweenEvictionRunsMillis: 120000
|
|
|
|
|
# 配置一个连接在池中最小生存的时间,单位是毫秒
|
|
|
|
|
minEvictableIdleTimeMillis: 300000
|
|
|
|
|
minEvictableIdleTimeMillis: 600000
|
|
|
|
|
# 配置一个连接在池中最大生存的时间,单位是毫秒
|
|
|
|
|
maxEvictableIdleTimeMillis: 900000
|
|
|
|
|
maxEvictableIdleTimeMillis: 1800000
|
|
|
|
|
# 配置检测连接是否有效
|
|
|
|
|
validationQuery: SELECT 1 FROM DUAL
|
|
|
|
|
testWhileIdle: true
|
|
|
|
@ -75,13 +81,16 @@ spring:
|
|
|
|
|
|
|
|
|
|
elasticsearch:
|
|
|
|
|
schema: http
|
|
|
|
|
# address: 39.108.144.227:9200
|
|
|
|
|
address: 118.31.7.2:9200
|
|
|
|
|
connectTimeout: 5000
|
|
|
|
|
socketTimeout: 5000
|
|
|
|
|
connectionRequestTimeout: 5000
|
|
|
|
|
address: 120.78.220.29:9200
|
|
|
|
|
# address: 39.108.144.227:3135
|
|
|
|
|
# address: 118.31.7.2:9200
|
|
|
|
|
connectTimeout: 10000
|
|
|
|
|
socketTimeout: 10000
|
|
|
|
|
connectionRequestTimeout: 10000
|
|
|
|
|
maxConnectNum: 100
|
|
|
|
|
maxConnectPerRoute: 100
|
|
|
|
|
# username: elastic
|
|
|
|
|
# password: es@test001
|
|
|
|
|
|
|
|
|
|
sso:
|
|
|
|
|
apiUrl: http://test.vsp.cqooc.com/open/api/v2/oauth/token?appId={APPID}&signature={SIGNATURE}&ticket={TICKET}
|
|
|
|
|