我試圖儘可能充分地找到有關Grails項目結構的概述。正如我所看到的,並非所有項目都使用由「grails create-app」生成的默認結構。Grails項目結構概述
%PROJECT_HOME%
+ grails-app
+ conf ---> location of configuration artifacts
+ hibernate ---> optional hibernate config
+ spring ---> optional spring config
+ controllers ---> location of controller artifacts
+ domain ---> location of domain classes
+ i18n ---> location of message bundles for i18n
+ services ---> location of services
+ taglib ---> location of tag libraries
+ util ---> location of special utility classes
+ views ---> location of views
+ layouts ---> location of layouts
+ lib
+ scripts ---> scripts
+ src
+ groovy ---> optional; location for Groovy source files
(of types other than those in grails-app/*)
+ java ---> optional; location for Java source files
+ test ---> generated test classes
+ web-app
+ WEB-INF
Grails是否還有其他默認文件夾? (例如,我看到了grails-app/jobs)
如果您安裝了腳手架插件,則存在src/templates。 grails-app/jobs是Quartz作業(提供類似於cron的功能)。 – 2010-12-01 13:07:10