@Component public class GlobalFileUtil extends Object
| 构造器和说明 |
|---|
GlobalFileUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static org.springframework.http.ResponseEntity<org.springframework.core.io.ByteArrayResource> |
down(String fileId,
String fileName) |
static String |
filePathById(String fileId,
String suffix) |
void |
setRoot(String root) |
static org.springframework.http.ResponseEntity<byte[]> |
showPicture(String fileId) |
static String |
upload(byte[] bytes,
String suffix) |
@Value(value="${dataease.busiFilePath:/opt/dataease/data/business/}")
public void setRoot(String root)
public static org.springframework.http.ResponseEntity<byte[]> showPicture(String fileId)
public static org.springframework.http.ResponseEntity<org.springframework.core.io.ByteArrayResource> down(String fileId, String fileName) throws Exception
ExceptionCopyright © 2023 Pivotal Software, Inc.. All rights reserved.