快速j2ee开发配置
1、下载eclipse for Java EE
2、配置JFinal + Beetl + Vue + jetty
3、代码生成,然后开车上路
4、记得部署时去掉jetty包,JFinal换成bin包
HelloController里的action代码
public void beetl() {
List<Record> users = Db.find("select * from tb_chapter");
this.setAttr("users", users);
this.render("beetl.html");
}
模板beetl.html
列表显示:<br />
<% for(user in users){ %>
${user.fid}---${user.fname} <br />
<% } %>
浏览器访问: http://localhost/hello/beetl

浙公网安备 33010602011771号