摘要:
创建Tag标签1.创建Model@Entity@Table(name = "blog_tag")public class Tag extends Model implements Comparable { public String name; private Tag(Stri... 阅读全文
posted @ 2015-10-29 17:03
alex_cool
阅读(413)
评论(0)
推荐(0)
摘要:
1.添加验证码Application Controller添加captcha()public static void captcha() { Images.Captcha captcha = Images.captcha(); renderBinary(captcha);} 添加RouteGET ... 阅读全文
posted @ 2015-10-29 11:21
alex_cool
阅读(497)
评论(0)
推荐(0)
摘要:
需要为Blog添加 查看和发表评论的功能1.创建查看功能Application.java中添加 show() 方法public static void show(Long id) { Post post = Post.findById(id); render(post);}创建 app/... 阅读全文
posted @ 2015-10-29 10:23
alex_cool
阅读(472)
评论(0)
推荐(0)
浙公网安备 33010602011771号