spring roo

1、下载spring roo

http://www.springsource.org/download/community?project=Spring%2520Roo

2、设置环境变量

ROO_HOME为安装目录

在PATH里添加%ROO_HOME%\bin

3、建立测试工程

mkdir hello
cd hello
roo
roo> hint
roo> project --topLevelPackage com.foo
roo> jpa setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY
roo> entity jpa --class ~.Timer --testAutomatically
roo> field string --fieldName message --notNull
roo> hint web mvc
roo> web mvc setup
roo> web mvc all --package ~.web
roo> selenium test --controller ~.web.TimerController
roo> web gwt setup
roo> perform tests
roo> quit

4、执行 mvn gwt:run 运行gwt客户端或者执行mvn tomcat:run 运行tomcat

 

另附一下spring roo的文档地址:

http://static.springsource.org/spring-roo/reference/html/index.html

发表评论?

0 条评论。

发表评论


注意 - 你可以用以下 HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>