在Java中如何使用freemaker模版进行输出呢?
首先你要有一个定义好的ftl文件,也就是最终输出的样式定义
| AlertMail | |
| Mon_type | ${AM.monType} |
| Alert_code | ${AM.alertCode} |
| Alert_text | ${AM.alertText} |
| Mon_date | ${AM.monDate} |
在Java中如何使用freemaker模版进行输出呢?
首先你要有一个定义好的ftl文件,也就是最终输出的样式定义
| AlertMail | |
| Mon_type | ${AM.monType} |
| Alert_code | ${AM.alertCode} |
| Alert_text | ${AM.alertText} |
| Mon_date | ${AM.monDate} |