Java中如何使用freemaker模版进行输出

2014-11-24 08:10:22 · 作者: · 浏览: 2

在Java中如何使用freemaker模版进行输出呢?


首先你要有一个定义好的ftl文件,也就是最终输出的样式定义































AlertMail
Mon_type ${AM.monType}
Alert_code ${AM.alertCode}
Alert_text ${AM.alertText}
Mon_date ${AM.monDate}