优化:增加连接池配置

pull/4/head
Harry 4 years ago
parent fc8f305e3d
commit 3b1b1845f8
  1. 4
      sop-admin/sop-admin-server/src/main/resources/META-INF/sop-admin.properties

@ -25,6 +25,10 @@ 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
# 固定不用改 # 固定不用改
mybatis.mapper-locations=classpath:mybatis/mapper/*.xml mybatis.mapper-locations=classpath:mybatis/mapper/*.xml
easyopen.show-doc=false easyopen.show-doc=false

Loading…
Cancel
Save