Play framework

来自开放百科 - 灰狐
(版本间的差异)
跳转到: 导航, 搜索
(sbt)
(REST API)
第60行: 第60行:
  
 
==REST API==
 
==REST API==
 +
*[[spray]]
 
*[https://github.com/typesafehub/play2-mini Play2 Mini Project] provides REST API on top of Play2
 
*[https://github.com/typesafehub/play2-mini Play2 Mini Project] provides REST API on top of Play2
  

2016年4月15日 (五) 09:29的版本

Wikipedia-35x35.png 您可以在Wikipedia上了解到此条目的英文信息 Play framework Thanks, Wikipedia.
Play-framework-90x90.gif

Play 是一个 JavaScala Web框架,很像 Ruby on Rails, 采用 Apache 2 许可协议。

目录

安装

brew install typesafe-activator
activator new my-first-app play-scala
or activator new my-first-app play-java
cd my-first-app
activator
or activator ui

入门

play new helloPlay
选 1 Scala应用 或 2 Java应用
cd helloPlay
play
[help] $ run 8080
或 start 8080 // crtl-d, 后台运行
http://localhost:8080

Spring & CF

Play 融合 SpringCloud Foundry

Eclipse

cd helloPlay
play 
[help] $ eclipse with-source=true
...
[info] Sucessfully created Eclipse project files for projects
然后,从 File/Import/General/Existing project 导入刚才的项目

在Eclipse中调试Play2 创建的应用

  • 1. Run->External Tools->External Tools Configuration
  • 2. 新增一个Program,完成后Run 如下图所示:Run
  • 3. 选中项目右键Debug As -> Debug Configuration ,新增一个远程调试配置,如下图所示:Debug

注意端口号是9999,play debug run开启的应用,调试端口默认是9999

  • 4. 打断点,进行调试。如下图所示:Break Point
  • 5. Enjoyed.

更多细节:Setting up your preferred IDE

BrowserID

BrowserID 的整合

Modules

现在的 Modules,未来向marketplace方向发展 :)

sbt

REST API

用户

图集

链接

分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱