优化路由加载时数据库连接池自动断开导致路由信息入库失败

pull/3/head
Harry 4 years ago
parent dc8d28a256
commit a94b8e2770
  1. 3
      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.username=${mysql.username}
spring.datasource.password=${mysql.password} 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.lower-case-service-id=true
spring.cloud.gateway.discovery.locator.enabled=true spring.cloud.gateway.discovery.locator.enabled=true

Loading…
Cancel
Save