Eclipse中如何创建*.ftl?
先建一个*.ftl文件,将freemarker官网上的模板copy进来
<html>
<head>
<title>Welcome!</title>
</head>
<body>
<h1>Welcome ${user}!</h1>
<p>Our latest product:
<a href="${latestProduct.url}">${latestProduct.name}</a>!
</body>
</html>
然后,在当前界面鼠标右击选择open with --> others... -->如图
点击ok,即可