使用 Grails 的安全数据绑定

工程 | Jeff Scott Brown | 2012 年 3 月 28 日 | ...

简介

Grails 框架为 Web 应用程序开发人员提供了许多工具和技术,以简化解决常见应用程序开发挑战。

其中包括许多简化与数据绑定相关的复杂和繁琐问题的工具。一般来说,Grails 通过提供多种将数据映射绑定到对象图的技术,使得数据绑定变得非常简单。

重要的是,应用程序开发人员需要理解每种技术的影响,以便为任何给定的用例决定哪种技术最合适、最安全。

Web 应用程序数据绑定概述

许多 Web 应用程序一个非常常见的任务是接受一组 HTTP 请求参数并将这些参数绑定到一个对象。然后该对象可以存储在数据库中,用于执行某种计算或用于执行某种应用程序逻辑。在 Grails 应用程序中,其中一些操作通常在控制器操作中执行,并且数据通常被绑定到域对象。

考虑一个看起来像这样的域类

代码清单 1

class Employee {
    String firstName
    String lastName
    BigDecimal salary
}

可能有...

本周 Spring:2012 年 3 月 20 日

工程 | Adam Fitzgerald | 2012 年 3 月 20 日 | ...

您好,欢迎来到另一期《本周 Spring》!像往常一样,我们有一些很棒的内容要看,所以让我们开始吧。

  1. 	Want to use SpringSource Tool Suite on the <a href = "http://blog.springsource.org/2012/03/14/early-access-springsource-tool-suite-for-eclipse-juno-4-2/">latest Eclipse Juno (4.2) milestone builds</A>? 
    	SpringSource Tool Suite lead Martin Lippert has got the answer for you.
    	  </LI>
    
    
    <LI> Michal Borek  has a great blog post on how to use the <a href = "http://www.greenpath.pl/2012/03/spring-framework-and-file-upload/"><CODE>ConversionService</CODE> in Spring 3.0+ to convert uploaded file data into a domain object</A>. First, this is a <EM>really</EM> cool idea. Second, users should be…

早期访问:用于 Eclipse Juno (4.2) 的 SpringSource Tool Suite

工程 | Martin Lippert | 2012 年 3 月 14 日 | ...

想在最新的 Eclipse Juno (4.2) 里程碑版本上使用 SpringSource Tool Suite 吗?这里有: :-)

如何安装

STS 所需的依赖项都可以从复合更新站点获得: http://dist.springsource.com/snapshot/TOOLS/composite/e4.2,如果您想手动添加一些东西。

自行管理更新站点

以下是您可以从中安装 STS、AJDT 和 Groovy-Eclipse for Juno (4.2) 的独立更新站点

已知限制

由于 Eclipse Juno 版本基于 Eclipse 4.x 流,您在启动最新的 Eclipse Juno 版本时会注意到用户界面发生了一些变化。我们尚未完全适应所有变化,因此 STS 的 Maven 支持(例如)尚无法正常工作。如果您发现其他任何问题,请告知我们。

反馈

这是 STS 的一个早期访问版本,由我们的 CI 服务器持续更新。如果您在 Eclipse Juno (4.2) M5(或更高版本)安装之上运行 STS 时遇到问题,请告知我们并在以下地址报告问题: https://issuetracker.springsource.com/browse/STS。由于我们计划在 2012 年 7 月 Eclipse Juno 发布后发布基于 Eclipse Juno 的 STS 3.0 版本,我们非常乐意听到您对此的意见并尽早收集反馈。

展望

我们计划在 2012 年 7 月 Eclipse Juno 发布后立即发布 STS 3.0 版本,提供基于 Eclipse Juno 的 STS 开箱即用版本。

本周 Spring:2012 年 3 月 6 日

工程 | Adam Fitzgerald | 2012 年 3 月 7 日 | ...

欢迎来到另一期《本周 Spring》。本周有很多内容可以看,最令人兴奋的是刚刚发布的 Spring for Apache Hadoop 项目,它为 Apache Hadoop 提供了非常非常强大的 Spring API 集成。Apache Hadoop 是一个开源框架,最初旨在支持 MapReduce 风格的批处理解决方案

</P> 
  1. Costin Leau 上周发布了 Spring for Apache Hadoop 1.0.0.M1 的公告,由此拉开了序幕。我解释得不如 Costin 好,所以我就不多说了。摘自他的博文:
    无论是编写独立的、原生的 MapReduce 应用程序,与企业内部多个数据存储交互数据,还是协调复杂的 HDFS、Pig 或 Hive 作业工作流,或者介于两者之间的任何内容,Spring for Apache Hadoop 都忠实于 Spring 的理念,提供简化的编程模型并解决基础设施带来的“意外复杂性”。
    还在等什么?快去看看吧!看完之后,您可能还会想看看其他的相关报道。正如您所料,许多博客讨论它。
    	 </LI> 
    <LI> What are you guys doing in two days, on March 8th, 2012? I'll be at the Native Android Development with Spring for Android webinar that introduces native Android development practices, resource management and the Spring for Android integration library, which makes the whole process more natural for developers that wish to interface with services on the server side. 
    	 There are, as usual, two editions, one <a href= "http://www.springsource.org/node/3482">for North America</A> and <a href = "http://www.springsource.org/node/3481">one for Europe</A>. Don't miss it! 
    	</LI…

介绍 Spring Integration Scala DSL

工程 | Oleg Zhurakousky | 2012 年 3 月 5 日 | ...

简介

Spring Integration 团队很高兴地宣布 **Spring Integration Scala DSL** 的第一个里程碑版本 (1.0.0.M1),它是 Spring Integration 产品组合的最新成员之一。
什么是 Spring Integration Scala DSL?

Spring Integration Scala DSL 是一个用 Scala 编写的领域特定语言,目标是

    • 为 Spring Integration 提供强类型替代 XML 配置的方案
    • 提高 Spring Integration 在 Scala 社区的认知度
    • 提供与各种 Scala 框架和产品(如 Akka)的一流集成
    • 提供与 Java 的无缝集成,让 Scala 开发人员仍然可以利用他们现有的 Java 投资

我们想指出的一点是,Spring Integration Scala DSL 本身并不是一个新的 EIP 框架。相反,它是一个基于 Scala 的 DSL,位于基于 Java 的 Spring Integration 框架之上,并且在第一个里程碑版本中,DSL 本身仍然严重依赖于 Spring Integration API 中的 Java 类型。然而,随着后续里程碑版本的推进,DSL 将会不断演进,变得越来越具有 Scala 风格。我们确实相信这种与现有...

本周 Spring,2012 年 2 月 28 日

工程 | Josh Long | 2012 年 2 月 29 日 | ...

欢迎来到另一期《本周 Spring》。像往常一样,我们有很多不错的内容要看。

  Since you&#39;re here, though, let&#39;s talk about the <a href="http://blog.cloudfoundry.com/post/13481010905/cloud-foundry-open-tour-2012" target="_blank">Cloud Foundry Open Tour</a>, which is an event bringing the industry&#39;s best talent and speakers on Spring, Cloud Foundry, and much more  to a town near you in America, Asia and Europe.  The full itinerary&#39;s provided on the linked page, but if you&#39;re in (or near) Shanhai, Beijing, Tokyo, London, Moscow, Kiev, San Francisco, Portland, Austin, and Washington D.C., then you should not  miss this event - <a href="http://opentour…

介绍 Spring for Apache Hadoop

工程 | Costin Leau | 2012 年 2 月 29 日 | ...

我很高兴地宣布,Spring for Apache Hadoop 项目的第一个里程碑版本 (1.0.0.M1) 已经可用,并介绍一下我们在过去几个月所做的一些工作。作为 Spring Data 家族的一部分,Spring for Apache Hadoop 通过利用 Spring 生态系统的能力,为开发基于 Apache Hadoop 技术的应用程序提供了支持。无论是编写独立的、原生的 MapReduce 应用程序,与企业内部多个数据存储交互数据,还是协调复杂的 HDFS、Pig 或 Hive 作业工作流,或者...

本周 Spring,2012 年 2 月 21 日

工程 | Josh Long | 2012 年 2 月 22 日 | ...

哇!又一周过去了,像往常一样,为社区创造了大量精彩内容,而且往往是社区自己创造的。让我们开始吧!

<OL> 
	<LI> First, the big news: <a href ="http://www.springsource.org/node/3476">Spring Framework 3.1.1's Been Released</A>!  
	 
	   The first maintenance release in the Spring 3.1.x line is now available via Maven Central, the <a href="http://repo.springsource.org/release">SpringSource repository</a>, or for direct download from our <a target="_blank" href="http://www.springsource.com/download/community?project=Spring%20Framework&amp;version=3.1.1.RELEASE">community download page</a>.  This release includes many <a href="https://jira.springsource.org/secure/ReleaseNote.jspa?projectId=1000…

本周 Spring:2012 年 2 月 14 日

工程 | Adam Fitzgerald | 2012 年 2 月 15 日 | ...

欢迎来到另一期《本周 Spring》。本周有很多不错的内容要回顾,所以让我们开始吧。

另外:如果您在瑞典斯德哥尔摩参加 JFokus Java 会议,请务必顺道去 VMWare 展位打个招呼,或就 SpringCloud FoundryvFabric 提出您的问题。

  1. Alan Stewart 宣布 Spring Roo 1.2.1 发布,其中包括对多模块 Maven 项目的修复、巨大的性能增强,以及对 PrimeFaces 3.1 和 Google App Engine 1.6.2 的更新支持。
    	</LI>
    	
    	
    <LI> Oliver Gierke has announced that <a href = "http://www.springsource.org/node/3469">JPA 1.1.0 RC1 and 1.0.3 GA have been released</a>. Among the many new features, the release includes support for locking, 
    	 <code>@IdClass</code> in entities,
    	Support for <code>LessThanEqual</code> and  <code>GreaterThanEquals</code>, <code>True</code>/<code>False</code> keywords in query methods…

Spring Roo 1.2.1.RELEASE 已发布

工程 | Alan Stewart | 2012 年 2 月 11 日 | ...

Spring Roo 团队很高兴地宣布 1.2.1.RELEASE 已可用。这是 1.2 的第一个维护版本,包括对多模块 Maven 支持和 JSF/PrimeFaces 中一些问题的修复。它还包含性能增强,并已更新以支持最近发布的 PrimeFaces 3.1 和 Google App Engine 1.6.2。

请注意,为了保持分发包体积较小,此版本及未来的版本中不包含参考文档的 zip 文件。文档一如既往地可以在 Spring Roo 网站上找到。

致敬

Alan

Spring Roo 项目负责人

订阅 Spring 通讯

订阅 Spring 通讯,保持联系

订阅

领先一步

VMware 提供培训和认证,助您快速前进。

了解更多

获取支持

Tanzu Spring 在一个简单的订阅中提供 OpenJDK™、Spring 和 Apache Tomcat® 的支持和二进制文件。

了解更多

即将举行的活动

查看 Spring 社区即将举行的所有活动。

查看全部