建立工程项目
通过命令行建造工程
1,首先下载Play 2.0.1 二进制运行包。www.playframework.com
2,解压压缩包找到可以看到里面内容。大家可以看到play.bat文件。
3,双击play.bat文件,会弹出一个窗口迅速关闭。Play.bat文件需要使用命令行启动。
4,开始=》输入“cmd”回车。cd到Play 2.0.1目录下。或者在系统环境里面设置好Path路径。
5,输入play.bat,运行。
6,因为没有建立工程软件。需要我们建立一个最新的Play application。输入命令Play.bat new helloPlay
手动建造工程
通过sbt建造。参考网址:https://github.com/harrah/xsbt/wiki/Getting-Started-Setup
Play英文教程:http://www.playframework.org/documentation/2.0.1/NewApplication
工程下目录结构
“app”:主要代码
“conf”:配置位置
“project”:工程构建代码
“public”:资源文件位置