play 学习 一:构建SBT的play项目

因为帮一个朋友做一个简单的项目,档案管理。同时也为了自己能学习PLay框架,所以记录一下。

项目GitHub地址: https://github.com/liufeiSAP/ArchiveManagement

Code base :https://example.lightbend.com/v1/download/play-java-rest-api-example

 

1:  下载https://example.lightbend.com/v1/download/play-java-rest-api-example,注意要有play-scala和play-java版本,我下载的是play-java版本

2:在工程目录下,启动CMD, 执行 "SBT run", 所有依赖的包都会下载下来,这个过程可能会很长时间,最后显示

        [info] play.api.Play - Application started (Dev).  此时就可以开发play项目了,修改文件后,可以热部署。

3: 浏览器输入:  http://localhost:9000/, 会显示界面。

4: 下一步,配置idea的支持: 下载和安装SBT和sacla, 这连个插件,在线安装,经常失败,可以下载后,离线安装。

 

 

https://github.com/ouyangyaxiong/play2.4-mybatis

posted @ 2018-01-22 17:27  刘大飞  阅读(315)  评论(0编辑  收藏  举报