Kaynağa Gözat

修复 数据库 异常断开

lfj 3 yıl önce
ebeveyn
işleme
82a0a1a64e

+ 8 - 0
fjs-scenic-manager/src/main/resources/application.properties

@@ -29,6 +29,14 @@ mybatis.configuration.map-underscore-to-camel-case=true
 spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
 spring.jackson.time-zone=GMT+8
 logging.level.com.fjs.scenic.mapper=debug
+spring.datasource.tomcat.max-idle=10
+spring.datasource.tomcat.max-wait=10000
+spring.datasource.tomcat.min-idle=5
+spring.datasource.tomcat.initial-size=5
+spring.datasource.tomcat.validation-query=SELECT 1
+spring.datasource.tomcat.test-on-borrow=false
+spring.datasource.tomcat.test-while-idle=true
+spring.datasource.tomcat.time-between-eviction-runs-millis=18800
 #FTP
 FTP_ADDRESS=null
 FTP_PORT=0