优化数据存储展示
This commit is contained in:
@@ -25,6 +25,7 @@ import javax.annotation.PostConstruct;
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.net.URLEncoder;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.nio.channels.Channels;
|
||||
import java.nio.channels.ReadableByteChannel;
|
||||
@@ -447,7 +448,10 @@ public class MinioService implements IMinioService {
|
||||
String mediaType = org.apache.commons.lang3.StringUtils.isBlank(contentType) ?
|
||||
MediaType.APPLICATION_OCTET_STREAM_VALUE : contentType;
|
||||
response.setContentType(mediaType);
|
||||
response.setHeader(HttpHeaders.CONTENT_DISPOSITION, encodedFileName);
|
||||
|
||||
String encodeFileName = URLEncoder.encode(encodedFileName, "UTF-8");
|
||||
encodeFileName = encodeFileName.replaceAll("\\+", "%20");
|
||||
response.setHeader(HttpHeaders.CONTENT_DISPOSITION, "attachment;filename=\"" + encodeFileName + "\";filename*=utf-8");
|
||||
response.setHeader(HttpHeaders.ACCEPT_RANGES, "bytes");
|
||||
response.addHeader(HttpHeaders.CONTENT_LENGTH, String.valueOf(fileSize));
|
||||
|
||||
|
||||
@@ -139,7 +139,7 @@ tenantSystem:
|
||||
localTenant: local
|
||||
|
||||
cid:
|
||||
url: http://192.168.65.162:8989/honeycom-spdm # 请根据实际CID服务地址修改
|
||||
url: http://192.168.190.162:8989/honeycom-spdm # 请根据实际CID服务地址修改
|
||||
#url: http://192.168.65.75:8989/honeycom-spdm # 朱欣茹地址
|
||||
user:
|
||||
listUser: /spdm-user/listUser
|
||||
@@ -174,9 +174,9 @@ cid:
|
||||
saveLog: /spdm-log/saveLog
|
||||
|
||||
thirdparty:
|
||||
api:
|
||||
# 即时通消息通知
|
||||
freeLinkUrl: http://freelink.haihui.com/wechat/InformApi/FreelinkAndDingdingInform
|
||||
freelink:
|
||||
sendUserId: Q12345
|
||||
switchFlag: false
|
||||
|
||||
security:
|
||||
whitelist:
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
# Spring Boot 项目强制停止脚本
|
||||
JAR_NAME="sysytem-0.0.1-SNAPSHOT.jar"
|
||||
JAR_NAME="system-0.0.1-SNAPSHOT.jar"
|
||||
|
||||
# 函数定义:获取运行中的进程ID
|
||||
get_running_pid() {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
# Spring Boot 项目强制停止脚本
|
||||
JAR_NAME="sysytem-0.0.1-SNAPSHOT.jar"
|
||||
JAR_NAME="system-0.0.1-SNAPSHOT.jar"
|
||||
|
||||
# 函数定义:获取运行中的进程ID
|
||||
get_running_pid() {
|
||||
|
||||
Reference in New Issue
Block a user