upload-path: E:/upload # 上传文件夹.
upload-key: 72b3158c-a0f3-11e8-98d0-529269fb1459 # 定义上传的 key .
spring:
datasource:
url: jdbc:postgresql://127.0.0.1:5432/resource
driver-class-name: org.postgresql.Driver
username: postgres
password: postgres
type: com.zaxxer.hikari.HikariDataSource
hikari:
minimum-idle: 3
resources:
static-locations: file:${upload-path} # 静态资源路径 (通过file:指定路径!!哦...)
server:
# 9000 端口--
port: 4000
这个很重要哦!