2013年2月25日 星期一

Spring ROO

01 project creation
02 creation and development of domain objects
03 adding fields of different types to the domain objects
04 creating relationships between domain objects
05 automatic creation of integration tests
06 creating workspace artifacts to import the project into your IDE
07 automatic scaffolding of a Web tier
08 running the application in a Web container
09 controlling and securing access to different views in the application
10 customizing the look and feel of the Web UI for our bussiness domain
11 creating and running Selenium tests
12 deployment and backup of your application


01
roo> project --topLevelPackage org.rooinaction.taskmanager --projectName  taskmanager


02
roo> logging setup --level WARN

03
roo> logging setup --level TRACE --package PROJECT

04
roo> jpa setup --database DERBY_EMBEDDED --provider ECLIPSELINK

05
roo> entity jpa --class ~.model.Task --testAutomatically

06
roo> field string --fieldName description --notNull --sizeMax  40

07
roo> field boolean --fieldName completed --value false

08
roo> web mvc setup

09
roo> web mvc all --package ~.web

10
roo> backup

11
$ mvn package jetty:run
roo>perform eclipse
perform eclipse之後,重更新STS中的專案,才可使用run server的指令

12
properties list --name database.properties --path SPRING_CONFIG_ROOT

13
properties set --name database.properties --path SPRING_CONFIG_ROOT --key password --value foob@r

14
focus --class ~.model.Course

15
























沒有留言:

張貼留言