posts - 156,  comments - 601,  trackbacks - 0
公告
<2009年3月>
22232425262728
1234567
891011121314
15161718192021
22232425262728
2930311234

常用链接

留言簿(45)

随笔分类(145)

随笔档案(110)

文章档案(1)

友情链接

最新随笔

搜索

  •  

积分与排名

  • 积分 - 678092
  • 排名 - 68

最新评论

阅读排行榜

评论排行榜


  在Spring官方网站闲逛,发现Grails 1.1在 2009-03-12正式发布了.

主要新加入的功能特征:
 1. Standalone GORM.(可脱离Grails框架单独运行)
 
<gorm:sessionFactory base-package="org.grails.samples"
                     data-source-ref
="dataSource"
                     message-source-ref
="messageSource">
   
<property name="hibernateProperties">
        
<util:map>
             
<entry key="hibernate.hbm2ddl.auto" value="update"/>
         
</util:map>
   
</property>
</gorm:sessionFactory>

 2. Maven & Ant+Ivy Support(Grails项目可以通过Maven和Ant Ivy编译)
 3.
Better Plugins (更好的插件实现,支持通知项目的metadata文件进行安装)
 4. Spring Namespace Support
Groovy DSL for defining bean definitions. This DSL has been extended to support Spring namespaces:
beans = {
    xmlns aop:"http://www.springframework.org/schema/aop"

    fred(Person) {
       name = "Fred"
       age = 45
    }
    birthdayCardSenderAspect(BirthdayCardSender)

     aop {
         config("proxy-target-class":true) {
             aspect( id:"sendBirthdayCard",ref:"birthdayCardSenderAspect" ) {
                   after method:"onBirthday",
                   pointcut: "execution(void ..Person.birthday()) and this(person)"
              }
         }
     }
}

 5. JSP Tag Library Support JSP标签库支持
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<form:form commandName="address" action="do">
       
<b>Zip: </b><form:input path="zip"/>
</form:form>


下面是官方发布信息:
SpringSource Head of Grails development, Graeme Rocher, provides an overview of the new features in his latest blog post. This includes the much requested ability to use Grails' Object Relational Mapping (GORM) outside of Grails itself as well as an example that uses GORM inside a Spring MVC application. Incorporating Spring namespaces and support for popular build tools like Maven and Ant+Ivy, the new release is the perfect opportunity to take a look at Grails.

下载 | 发布消息 | 修改日志 | 原代码下载


Good Luck!

Yours Matthew!


posted on 2009-03-15 22:48 x.matthew 阅读(1255) 评论(1)  编辑  收藏 所属分类: 最新开源动态