Groovy @CompileStatic and Grails

放肆的年华 提交于 2020-01-07 02:36:15

问题


Looking at article on DZone about improved performance with Groovy2 when compiling with @CompileStatic annotation, I wonder to what extent can I take advantage of it? I'm guessing annotate controllers, domain objects and services? Does Grails take advantage of it by default when app gets compiled?

Link to article.


回答1:


Current Grails version (2.1) run groovy 1.8.x

In Grails web you can see the roadmap, where Groovy 2.x integration is featured

http://grails.org/Roadmap




回答2:


As of December 20th 2012 the annotation should be useable with Grails 2.2 (which uses Groovy 2.0)



来源:https://stackoverflow.com/questions/12180178/groovy-compilestatic-and-grails

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!