Groovy @CompileStatic和Grails [英] Groovy @CompileStatic and Grails

查看:479
本文介绍了Groovy @CompileStatic和Grails的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用@CompileStatic注解进行编译时,查看关于DZone的关于使用Groovy2提高性能的文章,我想知道我能在多大程度上利用它?我在猜测控制器,域对象和服务? Grails在编译应用程序时默认使用它吗?

当前的Grails版本(2.1)运行groovy 1.8.x



在Grails web中,您可以看到Groovy 2.x集成特色的路线图。

http://grails.org/Roadmap


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.

解决方案

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

这篇关于Groovy @CompileStatic和Grails的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆