From eb357bb9938d569734b04948695726b80c5dfb85 Mon Sep 17 00:00:00 2001
From: peter <14100000001@qq.com>
Date: Wed, 19 Nov 2025 10:40:27 +0800
Subject: [PATCH] 代理后台新增删除用户、提现审核

---
 src/main/resources/application.yml |   33 ++++++++++++++++++++++++++-------
 1 files changed, 26 insertions(+), 7 deletions(-)

diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
index 109fcbe..ff1c5a0 100644
--- a/src/main/resources/application.yml
+++ b/src/main/resources/application.yml
@@ -1,6 +1,8 @@
 # 数据源配置
 # 开发环境配置
 server:
+#  profiles:
+#    active: local
   # 服务器的HTTP端口,默认为8090
   port: 8091
   tomcat:
@@ -13,13 +15,13 @@
       max: 800
       # Tomcat启动初始化的线程数,默认值10
       min-spare: 100
-
 # 日志配置
 logging:
+  file:
+    encoding: UTF-8
   level:
     com.ruoyi: debug
     org.springframework: warn
-
 # token配置
 token:
   # 令牌自定义标识
@@ -65,6 +67,21 @@
     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.username}
+    password: ${spring.datasource.password}
+    locations: classpath:db/migration/ #(根据个人情况设置,多个路径使用逗号分隔)
+    #版本控制日志表,默认flyway_schema_history
+    table: flyway_schema_history
   # 文件上传
   servlet:
     multipart:
@@ -90,6 +107,7 @@
     host: localhost
     # 端口,默认为6379
     port: 6379
+#    port: 6380
     # 数据库索引
     database: 0
     # 密码
@@ -109,12 +127,13 @@
   datasource:
     type: com.alibaba.druid.pool.DruidDataSource
     driverClassName: com.mysql.cj.jdbc.Driver
-    url: jdbc:mysql://127.0.0.1:3306/stock?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
-    rname: root
-    password: root
-#    url: jdbc:mysql://114.29.252.25:3306/stock?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
+    url: jdbc:mysql://127.0.0.1:3306/stock_us?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
+#    url: jdbc:mysql://127.0.0.1:6306us?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
+#    url: jdbc:mysql://127.0.0.1:3306/trading_order_1024?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
+    username: stock_us
+    password: M6bWfxCCGfXmf8Ly
 #    username: root
-#    password: Err;2[eoGFUriwdgr
+#    password: 123456
     druid:
       # 初始连接数
       initialSize: 5

--
Gitblit v1.9.3