From a94b8e2770667bb0a2fedd916306c981eb84cfe2 Mon Sep 17 00:00:00 2001 From: Harry <501777010@qq.com> Date: Thu, 22 Oct 2020 11:59:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=B7=AF=E7=94=B1=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E6=97=B6=E6=95=B0=E6=8D=AE=E5=BA=93=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=E6=B1=A0=E8=87=AA=E5=8A=A8=E6=96=AD=E5=BC=80=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E8=B7=AF=E7=94=B1=E4=BF=A1=E6=81=AF=E5=85=A5=E5=BA=93=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sop-gateway/src/main/resources/META-INF/gateway.properties | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sop-gateway/src/main/resources/META-INF/gateway.properties b/sop-gateway/src/main/resources/META-INF/gateway.properties index d59b5f1b..8974b391 100644 --- a/sop-gateway/src/main/resources/META-INF/gateway.properties +++ b/sop-gateway/src/main/resources/META-INF/gateway.properties @@ -18,6 +18,9 @@ spring.datasource.url=jdbc:mysql://${mysql.host}/sop?useUnicode=true&characterEn spring.datasource.username=${mysql.username} spring.datasource.password=${mysql.password} +#连接池 +spring.datasource.hikari.pool-name=DatebookHikariCP +spring.datasource.hikari.max-lifetime=500000 spring.cloud.gateway.discovery.locator.lower-case-service-id=true spring.cloud.gateway.discovery.locator.enabled=true