From 7fb0bca46a32416722cb40d995e493356d248ebf Mon Sep 17 00:00:00 2001
From: zj <1772600164@qq.com>
Date: Tue, 14 May 2024 17:28:40 +0800
Subject: [PATCH] 1

---
 src/main/resources/application.yml |   23 +++++------------------
 1 files changed, 5 insertions(+), 18 deletions(-)

diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
index d3f9d35..813ae08 100644
--- a/src/main/resources/application.yml
+++ b/src/main/resources/application.yml
@@ -63,21 +63,7 @@
     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
+
   # 文件上传
   servlet:
     multipart:
@@ -122,9 +108,10 @@
   datasource:
     type: com.alibaba.druid.pool.DruidDataSource
     driverClassName: com.mysql.cj.jdbc.Driver
-    url: jdbc:mysql://45.204.85.67111: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/stock?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
+#    url: jdbc:mysql://127.0.0.1:3306/cgstock?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
+    username: root
+    password: 123456
     druid:
       # 初始连接数
       initialSize: 5

--
Gitblit v1.9.3