Compilation of Groovy Code in Grails application -
when build war file grails application via grails war
still contains groovy files.
after war-filed deployed on application server, when , how files compiled java bytecode?
the templates there dynamic scaffolding. example if have controller this
class personcontroller { static scaffold = person }
then it'll use template create controller @ runtime. isn't used in real apps - it's more demos , getting started - it's option. dynamically generated controller , gsps created based on templates , compiled in-memory.
the groovy-all jar have code can compile groovy source, that's because it's "-all" jar. because it's there doesn't mean it's used. in general compilation done when building war, including precompiling gsps. performance - want app fast possible in production.
Comments
Post a Comment