![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
freemarker
iteye_13139
这个作者很懒,什么都没留下…
展开
-
一个简单的freemarker应用示例
下面的代码是以前一个项目中的一段代码改过来的。 String path = context.getRealPath("/template"); String filePath = context.getRealPath("/"); File dir = new File(path); Configuration config = new Configuration(...2011-06-11 12:21:02 · 103 阅读 · 0 评论 -
freemarker的一些基本应用,如时间的显示
这个以后一点一点的完善 时间的显示:我比较常用的方法:${meeting.startTime?string("yyyy-MM-dd HH:mm:ss")}//?string后面表示显示的格式 循环语句list的应用,在list循环中,有两个特殊的循环变量可用:item_index:这是一个包含当前项在循环中的步进索引的数值。item_has_next:来辨别当前...2011-06-11 12:36:17 · 130 阅读 · 0 评论