Commit 2ce1c995 authored by Quxl's avatar Quxl

修改连接池配置,增加validationQueryTimeout参数

Change-Id: I090159965f803d8e31446998f48d2a53a6dffe9b
parent c35e310a
...@@ -26,5 +26,6 @@ spring.datasource.shop.password=qiyang@2013 ...@@ -26,5 +26,6 @@ spring.datasource.shop.password=qiyang@2013
spring.datasource.shop.url=jdbc:sqlserver://10.10.0.22:1433;instanceName=SQLSERVER;DatabaseName=EGOLMDEV spring.datasource.shop.url=jdbc:sqlserver://10.10.0.22:1433;instanceName=SQLSERVER;DatabaseName=EGOLMDEV
spring.datasource.shop.driver-class-name=com.microsoft.sqlserver.jdbc.SQLServerDriver spring.datasource.shop.driver-class-name=com.microsoft.sqlserver.jdbc.SQLServerDriver
spring.datasource.shop.testWhileIdle=true spring.datasource.shop.testWhileIdle=true
spring.datasource.shop.validationQueryTimeout=5
spring.datasource.shop.validationQuery=SELECT 1 spring.datasource.shop.validationQuery=SELECT 1
spring.datasource.shop.timeBetweenEvictionRunsMillis=3600000 spring.datasource.shop.timeBetweenEvictionRunsMillis=3600000
\ No newline at end of file
server.tomcat.max-threads=1000 server.tomcat.max-threads=1000
server.tomcat.min-spare-threads=30 server.tomcat.min-spare-threads=30
server.port=8088 server.port=30002
server.context-path=/ server.context-path=/jobs
server.session.timeout=90000 server.session.timeout=90000
server.tomcat.uri-encoding=utf-8 server.tomcat.uri-encoding=utf-8
...@@ -21,10 +21,11 @@ spring.datasource.schedule.validationQuery=SELECT 1 ...@@ -21,10 +21,11 @@ spring.datasource.schedule.validationQuery=SELECT 1
spring.datasource.schedule.timeBetweenEvictionRunsMillis=3600000 spring.datasource.schedule.timeBetweenEvictionRunsMillis=3600000
spring.datasource.shop.username=sa spring.datasource.shop.username=ERP
spring.datasource.shop.password=qiyang spring.datasource.shop.password=qiyang@2013
spring.datasource.shop.url=jdbc:sqlserver://10.10.0.51:56443;instanceName=SQLSERVER;DatabaseName=EGOLMSAAS spring.datasource.shop.url=jdbc:sqlserver://10.10.0.22:1433;instanceName=SQLSERVER;DatabaseName=EGOLMDEV
spring.datasource.shop.driver-class-name=com.microsoft.sqlserver.jdbc.SQLServerDriver spring.datasource.shop.driver-class-name=com.microsoft.sqlserver.jdbc.SQLServerDriver
spring.datasource.shop.testWhileIdle=true spring.datasource.shop.testWhileIdle=true
spring.datasource.shop.validationQueryTimeout=5
spring.datasource.shop.validationQuery=SELECT 1 spring.datasource.shop.validationQuery=SELECT 1
spring.datasource.shop.timeBetweenEvictionRunsMillis=3600000 spring.datasource.shop.timeBetweenEvictionRunsMillis=3600000
\ No newline at end of file
server.tomcat.max-threads=1000 server.tomcat.max-threads=1000
server.tomcat.min-spare-threads=30 server.tomcat.min-spare-threads=30
server.port=8088 server.port=30002
server.context-path=/ server.context-path=/jobs
server.session.timeout=90000 server.session.timeout=90000
server.tomcat.uri-encoding=utf-8 server.tomcat.uri-encoding=utf-8
...@@ -21,10 +21,11 @@ spring.datasource.schedule.validationQuery=SELECT 1 ...@@ -21,10 +21,11 @@ spring.datasource.schedule.validationQuery=SELECT 1
spring.datasource.schedule.timeBetweenEvictionRunsMillis=3600000 spring.datasource.schedule.timeBetweenEvictionRunsMillis=3600000
spring.datasource.shop.username=sa spring.datasource.shop.username=ERP
spring.datasource.shop.password=qiyang spring.datasource.shop.password=qiyang@2013
spring.datasource.shop.url=jdbc:sqlserver://10.10.0.51:56443;instanceName=SQLSERVER;DatabaseName=EGOLMSAAS spring.datasource.shop.url=jdbc:sqlserver://10.10.0.22:1433;instanceName=SQLSERVER;DatabaseName=EGOLMDEV
spring.datasource.shop.driver-class-name=com.microsoft.sqlserver.jdbc.SQLServerDriver spring.datasource.shop.driver-class-name=com.microsoft.sqlserver.jdbc.SQLServerDriver
spring.datasource.shop.testWhileIdle=true spring.datasource.shop.testWhileIdle=true
spring.datasource.shop.validationQueryTimeout=5
spring.datasource.shop.validationQuery=SELECT 1 spring.datasource.shop.validationQuery=SELECT 1
spring.datasource.shop.timeBetweenEvictionRunsMillis=3600000 spring.datasource.shop.timeBetweenEvictionRunsMillis=3600000
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment