Playframework(1)Install and Demo

本文将指导您如何安装 Play Framework 2.0 并创建第一个 Java 应用演示。从下载最新版本、安装到运行 web 应用,一步步详细解析。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Playframework(1)Install and Demo


1. Install the package
Download the latest package from here http://download.playframework.org/releases/

Move the file to working directory

>mv play-2.0.4.zip /Users/carl/tool/


Unzip the file

>unzip play-2.0.4.zip


Link the /opt to my working directory

>sudo ln -s /Users/carl/tool/play-2.0.4 /opt/play


Add it to my path and verify the installation

>vi ~/.profile

export PATH=/opt/play:$PATH

>. ~/.profile


Verify the installation

>play help


2. Create the First Demo
>play new firstapp

I choose java application at first. I am familiar with java, so I will start at this.


>cd firstapp

>play


Start the web application

play>run


Visit the application with this URL http://localhost:9000


3. Enable the Eclipse IDE

Go to the working directory

>cd /Users/carl/work/play/firstapp

>play eclipsify


4. Anatomy of a Play 2.0 application

5. Commands

play>console

enter the scala console window


JPDA debug port

>play debug


force clean

>play clean-all


references:
http://www.playframework.org/documentation/2.0.4/Installing
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值