1
Grails允許你生成靜態的web.xml文件有:Grails如何將config.groovy與靜態web.xml文件合併?
grails install-templates
當你編輯生成的web.xml文件,並添加Config.groovy的變化是什麼的Grails在編譯的時候怎麼辦?這些文件如何合併到最終的web.xml文件中,因爲您可以在config.groovy中指定web.xml相關的配置?
Grails允許你生成靜態的web.xml文件有:Grails如何將config.groovy與靜態web.xml文件合併?
grails install-templates
當你編輯生成的web.xml文件,並添加Config.groovy的變化是什麼的Grails在編譯的時候怎麼辦?這些文件如何合併到最終的web.xml文件中,因爲您可以在config.groovy中指定web.xml相關的配置?
Grails具有一個包階段,它將完成創建最終的web.xml
文件所需的工作。如果我沒有弄錯,這是由GrailsProjectPackager#generateWebXml(GrailsPluginManager pluginManager)
完成的。
此過程還將查看您已安裝的插件,該插件可以在文件中應用自定義,但doWithWebDescriptor
閉包。你可以check it on Github。
當我在config.groovy和我的靜態web.xml中更改某些變量時,Grails會採用哪個值? – confile