实体
public class UploadFileInfo extends BaseEntity { @Id private String id; private String fileName;//文件名 private String fileType;//文件类型 private String filePath;//文件存放路径 private String createTime;//文件上传时间 private String createUser;//文件上传人 }
AjaxResult
public class AjaxResult { private int retcode = 0; private String retmsg = "操作成功"; private Object data = ""; }
IdUtil
public final class IdUtil { private IdUtil() { } public static String defaultUUID() { return UUID.randomUUID().toString(); } public static String shortUUID() { String uuidTemp = defaultUUID(); return uuidTemp.replaceAll("-", ""); } }
PropertiesUtil
public class PropertiesUtil { private static Map<String,String> config= null; public static String get(String key){ if(config==null){ PropertieBean propertieBean = ApplicationContextUtil.getBean(PropertieBean.class); config = propertieBean.getConfig(); } return config.get(key); } }