优化:增加连接池配置

This commit is contained in:
Harry
2020-10-23 16:37:04 +08:00
parent fc8f305e3d
commit 3b1b1845f8

View File

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