cn.dreampie.common.plugin.mail.MailerTemplate Maven / Gradle / Ivy
package cn.dreampie.common.plugin.mail;
import com.jfinal.kit.PathKit;
import freemarker.cache.FileTemplateLoader;
import freemarker.template.Configuration;
import freemarker.template.Template;
import java.io.File;
import java.io.IOException;
import java.io.StringWriter;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
/**
* Created by wangrenhui on 2014/7/2.
*/
public class MailerTemplate {
private static MailerTemplate mailerTemplate = new MailerTemplate();
/**
* 邮件模板的存放位置
*/
private static final String TEMPLATE_PATH = "/template/";
/**
* 模板引擎配置
*/
private static Configuration configuration;
/**
* 参数
*/
private static Map