@Component
@ConfigurationProperties(prefix="upload",
ignoreInvalidFields=true,
ignoreUnknownFields=true)
public class FileUploadConf
extends Object
| 构造器和说明 |
|---|
FileUploadConf() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getBaseUrl()
Getter method for property baseUrl.
|
String |
getFilePoolPath()
Getter method for property filePoolPath.
|
String |
getSavePath()
Getter method for property savePath.
|
String |
getSecuritySavePath()
Getter method for property securitySavePath.
|
boolean |
isRelative()
是否启用相对路径,true情况下返回的文件地址不包含主机部分
|
org.nutz.filepool.FilePool |
myfilePool() |
void |
setBaseUrl(String baseUrl)
Setter method for property baseUrl.
|
void |
setFilePoolPath(String filePoolPath)
Setter method for property filePoolPath.
|
void |
setRelative(boolean relative)
是否启用相对路径,true情况下返回的文件地址不包含主机部分
|
void |
setSavePath(String savePath)
Setter method for property savePath.
|
void |
setSecuritySavePath(String securitySavePath)
Setter method for property securitySavePath.
|
Map<String,String> |
suffixMap()
允许的文件后缀类型
|
String |
toString() |
public boolean isRelative()
public void setRelative(boolean relative)
relative - value to be assigned to property relativepublic String getSavePath()
public void setSavePath(String savePath)
savePath - value to be assigned to property savePathpublic String getBaseUrl()
public void setBaseUrl(String baseUrl)
baseUrl - value to be assigned to property baseUrlpublic String getSecuritySavePath()
public void setSecuritySavePath(String securitySavePath)
securitySavePath - value to be assigned to property securitySavePathpublic String getFilePoolPath()
public void setFilePoolPath(String filePoolPath)
filePoolPath - value to be assigned to property filePoolPath@Bean(name="myfilePool") public org.nutz.filepool.FilePool myfilePool()
Copyright © 癸卯【兔】年–2023 hlinfo. All rights reserved.