Commit 400b2e7e by linq

支持上传excel

parent 070d06a0
...@@ -17,7 +17,7 @@ file: ...@@ -17,7 +17,7 @@ file:
upload: upload:
local-path: /home/ssoUpload # 测试环境存储路径(建议独立于生产) local-path: /home/ssoUpload # 测试环境存储路径(建议独立于生产)
base-url: http://10.121.22.151:8080/ssoUpload/ # 测试环境访问URL(本地或测试服务器IP) base-url: http://10.121.22.151:8080/ssoUpload/ # 测试环境访问URL(本地或测试服务器IP)
allow-types: image/jpeg,image/png,audio/mpeg,audio/wav,video/mp4,video/x-flv allow-types: image/jpeg,image/png,audio/mpeg,audio/wav,video/mp4,video/x-flv,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet #支持EXCEL
# 测试环境日志配置 # 测试环境日志配置
logging: logging:
level: level:
......
...@@ -15,9 +15,9 @@ server: ...@@ -15,9 +15,9 @@ server:
# 测试环境文件存储配置(本地/开发服务器路径) # 测试环境文件存储配置(本地/开发服务器路径)
file: file:
upload: upload:
local-path: /Users/baiyh/Desktop/test # 测试环境存储路径(建议独立于生产) local-path: /home/ssoUpload # 测试环境存储路径(建议独立于生产)
base-url: http://localhost:4399 # 测试环境访问URL(本地或测试服务器IP) base-url: http://10.121.24.151:8080/ssoUpload/ # 测试环境访问URL(本地或测试服务器IP)
allow-types: image/jpeg,image/png,audio/mpeg,audio/wav,video/mp4,video/x-flv allow-types: image/jpeg,image/png,audio/mpeg,audio/wav,video/mp4,video/x-flv,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet #支持EXCEL
# 测试环境日志配置 # 测试环境日志配置
logging: logging:
...@@ -25,4 +25,4 @@ logging: ...@@ -25,4 +25,4 @@ logging:
root: INFO root: INFO
com.makeit: DEBUG # 测试环境日志级别可略低,便于调试 com.makeit: DEBUG # 测试环境日志级别可略低,便于调试
file: file:
name: /Users/baiyh/Desktop/test/ssoUpload-test.log # 测试日志路径 name: /home/ssoUpload/ssoUpload-test.log # 测试日志路径
\ No newline at end of file \ No newline at end of file
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
spring: spring:
# 1. 环境激活配置 # 1. 环境激活配置
profiles: profiles:
active: prod # 默认激活测试环境,生产启动参数:--spring.profiles.active=prod active: prod # 默认激活测试环境,生产启动参数:--spring.profiles.active=prod
# 2. 文件上传公共配置(合并到spring节点下,避免重复定义) # 2. 文件上传公共配置(合并到spring节点下,避免重复定义)
servlet: servlet:
multipart: multipart:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment