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