配置文件上传

master
yz 1 year ago
parent 17da9871c1
commit ea805e3a49

@ -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

@ -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

@ -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

Loading…
Cancel
Save