1、 FreeMarker主页
http://www.freemarker.org/index.html
2、
- import java.io.File;
- import java.io.FileOutputStream;
- import java.io.OutputStreamWriter;
- import java.io.Writer;
- import java.util.HashMap;
- import java.util.Map;
- import freemarker.template.Configuration;
- import freemarker.template.Template;
- public class Test1 {
- private Configuration cfg;
- public Configuration getCfg() {
- return cfg;
- }
- public void init() throws Exception {
- cfg = new Configuration();
- //cfg.setDirectoryForTemplateLoading(new File("bin/freemarker"));
- cfg.setDirectoryForTemplateLoading(new File("src/test/java/com/alibaba/panama/core"));
- }
- public static