grails console
主控台
目的
以初始化的 Grails 執行時間啟動 Swing 圖形 Groovy 主控台實例。
範例
說明
啟動 Grails 主控台,這是常規 Groovy 主控台的延伸版本。繫結中註冊了幾個有用的變數
-
ctx
- Spring ApplicationContext 實例 -
grailsApplication
- GrailsApplication 實例
這些很有用,因為它們允許存取 Grails 和 Spring bean 中的慣例。
用法
grails <<environment>>* console