From ba9e35f79fa9a703992c58c5951cd1593749172e Mon Sep 17 00:00:00 2001
From: ydj <yangsink@163.com>
Date: Mon, 03 Jun 2024 17:58:58 +0800
Subject: [PATCH] 1
---
target/classes/application.yml | 34 ++++++++++++++--------------------
1 files changed, 14 insertions(+), 20 deletions(-)
diff --git a/target/classes/application.yml b/target/classes/application.yml
index 1f7c668..4973fe4 100644
--- a/target/classes/application.yml
+++ b/target/classes/application.yml
@@ -63,21 +63,12 @@
time-zone: Asia/Kolkata
profiles:
active: druid
- flyway:
- enabled: true
- # 禁止清理数据库表
- clean-disabled: false
- # 如果数据库不是空表,需要设置成 true,否则启动报错
- baseline-on-migrate: true
- # 与 baseline-on-migrate: true 搭配使用
- baseline-version: 0
- #数据库连接配置
- url: ${spring.datasource.url}
- user: ${spring.datasource.name}
- password: ${spring.datasource.password}
- locations: classpath:db/migration/ #(根据个人情况设置,多个路径使用逗号分隔)
- #版本控制日志表,默认flyway_schema_history
- table: flyway_schema_history
+# flyway:
+# enabled: true
+# # 禁’assword}
+# locations: classpath:db/migration/ #(根据个人情况设置,多个路径使用逗号分隔)
+# #版本控制日志表,默认flyway_schema_history
+# table: flyway_schema_history
# 文件上传
servlet:
multipart:
@@ -122,16 +113,19 @@
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driverClassName: com.mysql.cj.jdbc.Driver
- url: jdbc:mysql://14.128.50.174:6306/stock?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
- name: root
- password: f6fac591b6fcd9d6
+ url: jdbc:mysql://127.0.0.1:3306/dabaogp_0311?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
+ username: dabaogp_0311
+ password: wRG8R2ndmmFJmNpA
+# url: jdbc:mysql://127.0.0.1:3306/stock?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
+# username: root
+# password: root
druid:
# 初始连接数
initialSize: 5
# 最小连接池数量
minIdle: 10
# 最大连接池数量
- maxActive: 20
+ maxActive: 50
# 配置获取连接等待超时的时间
maxWait: 60000
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
@@ -160,7 +154,7 @@
enabled: true
# 慢SQL记录
log-slow-sql: true
- slow-sql-millis: 1000
+ slow-sql-millis: 5000
merge-sql: true
wall:
config:
--
Gitblit v1.9.3