8小时断开连接 不重连问题,更正配置文件
This commit is contained in:
@@ -1,31 +1,41 @@
|
|||||||
spring:
|
spring:
|
||||||
|
jpa:
|
||||||
|
show-sql: true
|
||||||
datasource:
|
datasource:
|
||||||
primary:
|
primary:
|
||||||
username: cdairport
|
username: cdairport
|
||||||
password: 123456
|
password: 123456
|
||||||
url: jdbc:mysql://130.120.3.158:3306/cdairport?useSSL=false&useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&&autoReconnect=true
|
url: jdbc:mysql://130.120.3.158:3306/cdairport?useSSL=false&useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&autoReconnect=true
|
||||||
tomcat:
|
max-active: 30
|
||||||
max-active: 30
|
test-on-borrow: true
|
||||||
test-on-borrow: true
|
validation-query: SELECT 1
|
||||||
initial-size: 3
|
initial-size: 3
|
||||||
min-idle: 1
|
min-idle: 1
|
||||||
max-wait: 60000
|
max-wait: 60000
|
||||||
time-between-eviction-runs-millis: 60000
|
time-between-eviction-runs-millis: 60000
|
||||||
min-evictable-idle-time-millis: 300000
|
min-evictable-idle-time-millis: 300000
|
||||||
test-while-idle: true
|
test-while-idle: true
|
||||||
test-on-return: false
|
test-on-return: false
|
||||||
pool-prepared-statements: false
|
pool-prepared-statements: false
|
||||||
max-pool-prepared-statement-per-connection-size: 20
|
max-pool-prepared-statement-per-connection-size: 20
|
||||||
secondary:
|
secondary:
|
||||||
username: ommsxc
|
username: ommsxc
|
||||||
password: ommsxc
|
password: ommsxc
|
||||||
#url: jdbc:oracle:thin:@130.120.3.236:1521/xe
|
#url: jdbc:oracle:thin:@130.120.3.236:1521/xe
|
||||||
url: jdbc:oracle:thin:@130.120.2.105:1521/orcl
|
url: jdbc:oracle:thin:@130.120.2.105:1521/orcl
|
||||||
driver: oracle.jdbc.driver.OracleDriver
|
driver: oracle.jdbc.driver.OracleDriver
|
||||||
tomcat:
|
max-active: 30
|
||||||
max-active: 30
|
test-on-borrow: true
|
||||||
test-on-borrow: true
|
validation-query: SELECT 1
|
||||||
initial-size: 3
|
initial-size: 3
|
||||||
|
min-idle: 1
|
||||||
|
max-wait: 60000
|
||||||
|
time-between-eviction-runs-millis: 60000
|
||||||
|
min-evictable-idle-time-millis: 300000
|
||||||
|
test-while-idle: true
|
||||||
|
test-on-return: false
|
||||||
|
pool-prepared-statements: false
|
||||||
|
max-pool-prepared-statement-per-connection-size: 20
|
||||||
sysApi:
|
sysApi:
|
||||||
host: 130.120.3.231
|
host: 130.120.3.231
|
||||||
port: 93
|
port: 93
|
||||||
|
|||||||
Reference in New Issue
Block a user