Spring Roo 1.1.0.M1 [rev 3a0b8a3]で試した結果です
controller classコマンド
- 空のコントローラークラスを作成する
リファレンス
- 載ってない
- helpコマンドで確認
roo> help controller class
Keyword: controller class Description: Create a new manual Controller (ie where you write the methods) Keyword: class Keyword: ** default ** Help: The path and name of the controller object to be created Mandatory: true Default if specified: '__NULL__' Default if unspecified: '__NULL__' Keyword: preferredMapping Help: Indicates a specific request mapping path for this controller (eg /foo/) Mandatory: false Default if specified: '__NULL__' Default if unspecified: '__NULL__' Keyword: controller class Description: Create a new manual Controller (ie where you write the methods) Keyword: class Keyword: ** default ** Help: The path and name of the controller object to be created Mandatory: true Default if specified: '__NULL__' Default if unspecified: '__NULL__' Keyword: preferredMapping Help: Indicates a specific request mapping path for this controller (eg /foo/) Mandatory: false Default if specified: '__NULL__' Default if unspecified: '__NULL__' * controller class - Create a new manual Controller (ie where you write the methods)
なんでhelpコマンドって2回同じのが出力されるんだろう?
オプション
--class [className]
- [className]にコントローラークラス名を指定する
使い方
roo> controller class --class ~.web.BlankController
Created SRC_MAIN_JAVA\com\example\sandbox\web\BlankController.java Created SRC_MAIN_WEBAPP\WEB-INF\views\blank Created SRC_MAIN_WEBAPP\WEB-INF\views\blank\index.jspx Managed SRC_MAIN_WEBAPP\WEB-INF\i18n\application.properties Managed SRC_MAIN_WEBAPP\WEB-INF\views\menu.jspx Created SRC_MAIN_WEBAPP\WEB-INF\views\blank\views.xml