CustomMessageKit.java
726 字节
package com.framework.util;
import java.io.File;
import java.util.Date;
/**
* Depiction:
* <p>
* Modify:
* <p>
* Author: William Lynn
* <p>
* Create Date:2018年6月7日 下午3:45:16
*
*/
public class CustomMessageKit {
public static String getMessageDir() {
String dirPath = PropertiesLoader.get("custom.message.dir", "/application.properties");
File dir = new File(dirPath);
if (dir == null || !dir.exists()) {
dir.mkdirs();
}
return dirPath;
}
public static String getMessagePath() {
return getMessageDir() + "/" + getMessageName();
}
public static String getMessageName() {
return "CN_MT2201_1P0_4604_70678920X_" + TimeUtils.getDate(new Date(), "yyyyMMddHHmmssSSS") + ".xml";
}
}