From ea805e3a4912d2b624f01836368f43e9c01679f1 Mon Sep 17 00:00:00 2001 From: yz <3614508250@qq.com> Date: Mon, 8 Jan 2024 16:31:28 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application-pro.yml | 15 +++++++++++++++ src/main/resources/application-test.yml | 4 ++-- src/main/resources/application.yml | 6 +++++- 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/src/main/resources/application-pro.yml b/src/main/resources/application-pro.yml index f9bb74d..9980fc6 100644 --- a/src/main/resources/application-pro.yml +++ b/src/main/resources/application-pro.yml @@ -1,2 +1,17 @@ +spring: + datasource: + druid: + db-type: mysql + url: jdbc:mysql://${DB_HOST:127.0.0.1}:${DB_PORT:3306}/${DB_NAME:foreign_exchange_trading}?useSSL=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true + username: ${DB_USER:root} + password: ${DB_PWD:Sztzjy506} + driver-class-name: com.mysql.cj.jdbc.Driver + + +# 文件存储 +file: + type: local + path: /usr/local/tianzeProject/foreignExchange/uploadFile + timer: enable: false \ No newline at end of file diff --git a/src/main/resources/application-test.yml b/src/main/resources/application-test.yml index 2e14ebb..a2bc499 100644 --- a/src/main/resources/application-test.yml +++ b/src/main/resources/application-test.yml @@ -2,9 +2,9 @@ spring: datasource: druid: db-type: mysql - url: jdbc:mysql://${DB_HOST:127.0.0.1}:${DB_PORT:3306}/${DB_NAME:foreign_exchange_trading}?useSSL=false&serverTimezone=UTC + url: jdbc:mysql://${DB_HOST:120.79.54.255}:${DB_PORT:3306}/${DB_NAME:foreign_exchange_trading}?useSSL=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true username: ${DB_USER:root} - password: ${DB_PWD:sztzjy2017} + password: ${DB_PWD:Sztzjy506} driver-class-name: com.mysql.cj.jdbc.Driver diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 839a761..b6ca289 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -4,10 +4,14 @@ server: context-path: / spring: + servlet: + multipart: + max-file-size: 50MB + max-request-size: 50MB application: name: trading_system profiles: - active: dev + active: test mvc: pathmatch: matching-strategy: ant_path_matcher