码迷,mamicode.com
首页 > 其他好文 > 详细

Learning Play! 2.4

时间:2015-08-12 06:40:13      阅读:147      评论:0      收藏:0      [点我收藏+]

标签:

1) Activator

Download typesafe-activator-1.3.5.zip, extract, set path

2) Create new project

activator new hello

3) Eclipse setting

Create: ~/.sbt/0.13/plugins/plugins.sbt

Add: addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0")

Run: activator eclipse

4) Import to Eclipse:

Import --> Existing Projects --> Select root directory --> Finish

5) Modify controller

app --> controllers --> Application.java:   return ok(index.render("Hello World!"));

6) Run application

activator run

visit "http://localhost:9000/" in browser

7) Bingo!

 

Learning Play! 2.4

标签:

原文地址:http://www.cnblogs.com/elhz/p/4722909.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!