@EnableConfigurationProperties(value=StorageProperties.class) public class StorageConfiguration extends Object implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
| Constructor and Description |
|---|
StorageConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
Map<String,Object> |
createUploadToken(org.aoju.bus.storage.UploadToken param) |
boolean |
delete(String fileName) |
void |
destroy() |
String |
upload(String fileName,
File file) |
String |
upload(String fileName,
InputStream in,
String mimeType) |
public void destroy()
throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeanExceptionpublic void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic String upload(String fileName, InputStream in, String mimeType)
public boolean delete(String fileName)
Copyright © 2019. All rights reserved.