cn.jiangzeyin.controller.multipart.MultipartFileConfig Maven / Gradle / Ivy
package cn.jiangzeyin.controller.multipart;
import cn.jiangzeyin.StringUtil;
/**
* Created by jiangzeyin on 2017/10/25.
*/
public class MultipartFileConfig {
private static String fileTempPath;
public static void setFileTempPath(String fileTempPath) {
MultipartFileConfig.fileTempPath = fileTempPath;
}
public static String getFileTempPath() {
if (StringUtil.isEmpty(fileTempPath))
throw new IllegalArgumentException("please set fileTempPath");
return fileTempPath;
}
}