在里面 播放入门文档,他们展示了这个控制器:
public static void index() {
Post frontPost = Post.find("order by postedAt desc").first();
List<Post> olderPosts = Post.find("order by postedAt desc").from(1).fetch(10);
render(frontPost, olderPosts);
}
然后,在模板中使用frontPost和olderPosts而没有任何特殊的映射!
<a href="#">${frontPost.title}</a>
Play怎么保留这些名字?