scaffold [scaffold]

scaffold [scaffold] module




~ You can now use it by add adding this line to application.conf file:
~ module.scaffold=${play.path}/modules/scaffold-head


root@playApps/HelloWorld# play scaffold:gen --overwrite
上述請記得在專案目錄中下命令.
~        _            _
~  _ __ | | __ _ _  _| |
~ | '_ \| |/ _' | || |_|
~ |  __/|_|\____|\__ (_)
~ |_|            |__/
~
~ play! 1.1RC3, http://www.playframework.org
~
--overwrite
executing command: scaffold:gen
01:54:15,525 INFO  ~ Starting /tmp/playApps/HelloWorld
01:54:15,528 INFO  ~ Module scaffold is available (/opt/javaEE/play-1.1RC3/modules/scaffold-head)
01:54:16,006 WARN  ~ You're running Play! in DEV mode
01:54:16,008 INFO  ~ --overwrite: We will force overwrite target files
01:54:16,189 INFO  ~ Generating controller: Users
01:54:17,200 INFO  ~ + app/controllers/Users.java
01:54:17,200 INFO  ~ Generating views for Users
01:54:17,814 INFO  ~ + app/views/Users/_form.html
01:54:17,857 INFO  ~ + app/views/Users/create.html
01:54:18,007 INFO  ~ + app/views/Users/show.html
01:54:18,088 INFO  ~ + app/views/Users/edit.html
01:54:18,325 INFO  ~ + app/views/Users/index.html

GET http://wisdomfish.org:9000/Users/index


Comments