Skip to content

Commit 5bc147a

Browse files
committed
[代码优化](v2.6):调试
1 parent da37d40 commit 5bc147a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

eladmin-system/src/main/resources/config/application-prod.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
spring:
33
datasource:
44
druid:
5+
# 超过时间限制是否回收
6+
remove-abandoned: true
7+
# 超时时间;单位为秒 3分钟
8+
remove-abandoned-timeout: 120
9+
# 关闭abanded连接时输出错误日志
10+
log-abandoned: true
511
db-type: com.alibaba.druid.pool.DruidDataSource
612
driverClassName: net.sf.log4jdbc.sql.jdbcapi.DriverSpy
713
url: jdbc:log4jdbc:mysql://${DB_HOST:localhost}:${DB_PORT:3306}/${DB_NAME:eladmin}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false

0 commit comments

Comments
 (0)