本周 Spring - 2012 年 4 月 24 日

工程 | Josh Long | 2012年4月24日 | ...

欢迎回到《本周 Spring》的又一篇!在整理这些内容时,我正热切地等待 Costin Leau 在乌克兰阳光明媚、美丽的基辅(Cloud Foundry Open Tour 欧洲巡演的第一站)发表演讲,主题是“Spring 中的 NOSQL”。这次活动的参与人数非常惊人!如果您正在阅读本文,则意味着您已经错过了参加基辅活动的宝贵机会,但请务必注册参加即将举行的莫斯科伦敦活动。

  1. 在这次 SpringOne 2GX 2011 会议中,Mark Fisher 和 Thomas Risberg 通过将关系数据库替换为 NoSQL 数据库,引入模块化,添加多语言支持,并利用常见的企业集成模式整合消息队列和事件驱动请求处理,成功地改造了一个单一的企业应用程序
  2. 大家注意到《精彩的 Spring Roo in Action》的最终版刚刚出版了吗?
        This book is, as Ben Alex (Spring Roo project founder) put it, "an insightful and comprehensive treatment." I (personally) can't recommend it enough. Ken Rimple and Srini Penchikala, as long time readers of this roundup will know, are frequent Spring community bloggers and 
    

    定期提供关于所有 Spring 内容的精彩内容。

  3. 			 <LI>  
    		Blogger Billy Sj&ouml;berg on DZone has a great post on how <a href = "http://www.dzone.com/links/r/bridging_between_jms_and_rabbitmq_amqp_using_spri.html">to bridge JMS and RabbitMQ</A>. 
    		 This example uses <a href = "http://www.springsource…

本周 Spring:2012年4月17日

工程 | Adam Fitzgerald | 2012年4月17日 | ...

欢迎回到又一期《本周 Spring》。本周是报名参加 SpringOne on the Road伦敦基辅莫斯科 举行的活动的最后机会,所以务必注册。让我们深入了解一下!

  1. Chris Richardson 关于 Java 开发人员的 NoSQL 选项 的网络研讨会录音已上线 SpringSourceDev YouTube 频道。
  2. Shekhar Gulati 对 Spring Roo 的出色介绍在 IBM 的 developerWorks 门户网站上继续。最新一期介绍了 编写高级(和包装器)Spring Roo 附加组件
  3. <LI>  This article, which introduces how to use <a href = "http://java.dzone.com/articles/use-javafx2-spring">Spring to assemble  JavaFX 2 components</a> is short and to the point.  I'd probably use Spring's Java configuration option to fully exploit all the custom components, however. The nice thing about the approach outlined (over using FXML, directly, is that beans configured this way benefit from all the services that Spring provides, including dependency injection and AOP). Nice post, Andy!  </LI>
    
    <LI>Blogger <EM>Rob Gordon</EM> has a nice post introducing <a href ="http://rgordon.co…

本周 Spring - 2012 年 4 月 10 日

工程 | Josh Long | 2012 年 4 月 11 日 | ...

多么精彩的一周!Cloud Foundry Open Tour 正在如火如荼地进行中,刚刚结束了亚洲和美国的巡演。现在,我们将前往欧洲!(如果您在欧洲,现在是锁定席位的时候了!)

在继续分享最新最棒的内容之前,我想提醒大家关注 Spring Integration 大师 Oleg Zhurakousky 即将举行的网络研讨会,“Spring Integration 实用技巧”。一如既往,有针对北美的一个活动,以及针对欧洲的一个活动。

  1. Gunnar Hillert 撰写了一篇博客,介绍了在SpringSource Tool Suite 中备受关注的一个功能:用于创建 Spring Integration 项目的易用模板。干得漂亮,Gunnar!另外,别忘了观看 Gunnar 制作的相关视频使用 STS 创建 Spring Integration 项目,该视频发布在SpringSource YouTube 频道上。
  2. Michael Isvy 撰写了一篇精彩的博客,解释了在升级到 Spring 3.1 时需要注意的一些事项。非常实用!
  3.  <LI> Spring Integration 2.1.1 has been released! This is the first maintenance release of 2.1.x branch and contains the usual things like bug fixes and improvements related to AMQP, Gemfire, Mongo and Redis modules which were first introduced in Spring Integration 2.1.0. All together 56 issues were resolved with this release. 
    	 For more, consult <a href = "http://www.springsource.org/node/3520">the release announcement</A>.</LI>
    		
    <LI>  Gabriel Axel talks about the <a href = "http://www.gabiaxel.com/2012/04/spring-social-google-first-milestone-is.html">first milestone of Spring Social…

使用 STS 创建 Spring Integration 项目

工程 | Gunnar Hillert | 2012 年 4 月 9 日 | ...

仅仅几天前,SpringSource Tool Suite™ (STS) 2.9.1 发布了。除了许多新功能之外,它还为Spring Integration 用户提供了几项特别令人兴奋的功能。首先,最新的 STS 版本增加了对 Spring Integration 2.1 的支持,并改进了 Spring Integration 流的可视化能力。STS 现在支持所有最近添加的 Spring Integration 适配器,例如

此外,所有现有的 Spring Integration 适配器都已更新,以支持新的可视化元素。对 Spring Integration 用户来说,另一个令人惊喜的补充是 SpringSource Tool Suite 2.9.x 现在附带了对 Spring Integration 的模板支持。因此,在使用Spring Template Project Wizard创建新项目时,您现在可以在以下 3 个新的面向 Spring Integration 的模板之间进行选择:
  • Spring Integration 项目(独立) - 简单
  • Spring Integration 项目(独立) - 文件
  • Spring Integration 项目(War
简单模板创建一个基本的 Spring Integration 项目,该项目作为一个独立的 Java 应用程序运行,仅使用核心 Spring Integration 组件。为了说明文件轮询功能,文件模板使用了额外的组件来轮询文件目录以及路由这些文件。最后,War 模板允许用户轻松创建面向 Web 应用程序归档(WAR)部署并在 Servlet 容器(例如 Tomcat)中运行的基本 Spring Integration 项目。出于说明目的,War 模板使用了 Spring Integration 的Twitter 适配器

创建新的 Spring Integration 项目

要使用 STS Spring 模板启动新项目,请在主菜单中转到**文件**,然后是**新建**,最后是**Spring 模板项目**。然后将显示**模板选择屏幕**。

 

[caption id="attachment_10681" align="aligncenter" width="342" caption="模板选择屏幕"][/caption]

此屏幕提供了所有可用 Spring 模板的列表,包括上面提到的 3 个新的 Spring Integration 模板。如果看到模板名称前面的小箭头,则表示该模板尚未下载。下载后,模板将被缓存到您的计算机上,您无需再次下载模板文件,除非您按**刷新**...

本周 Spring - 2012 年 4 月 3 日

工程 | Josh Long | 2012 年 4 月 4 日 | ...

欢迎来到《本周 Spring》的又一期。 Cloud Foundry Open Tour 正在如火如荼地进行中,并且到目前为止,这些活动都非常成功地吸引了社区。

There are still some (well, there were yesterday!) early bird spots in the upcoming shows in <a href = "http://opentour.cloudfoundry.com/2012/austin">Austin</A>, <a href = "http://opentour.cloudfoundry.com/2012/washington">Washington D.C.</a>, <a href = "http://opentour.cloudfoundry.com/2012/kiev">Kiev</A>, <a href = "http://opentour.cloudfoundry.com/2012/moscow">Moscow</A>, and <a href  = "http://opentour.cloudfoundry.com/2012/london">London</A>, so book now. 

  1. 来自 Spring I/O 会议的一些精彩内容现已在线提供!今年 2 月在西班牙举行的会议使用西班牙语和英语进行,因此无论您说什么语言,都有很多内容可供选择。Adrian Colyer 的主题演讲非常精彩,一旦您克服了开头的音频问题。我找不到 SpringIO 特定的哈希标签,但您可以通过滚动页面轻松地从其他视频中找到它们。敬请期待,很快将有更多内容发布。
  2.  <LI> Tobias Fiohre (who  seemingly lives  <EM>only</Em> to please us, the lucky developers in the  Spring community!)  has put up…

本周 Spring - 2012 年 3 月 27 日

工程 | Josh Long | 2012年3月28日 | ...

欢迎阅读本期《本周 Spring》。一如既往,我们有很多内容要涵盖。就在本帖发布之时,Cloud Foundry 公开巡演正在北京进行中,并将很快来到你附近的城市。这次巡演是向专家学习 Cloud Foundry 和 Spring 的一个绝佳机会——不容错过,立即注册。

  1. Spring Web 开发者 Rossen Stoyanchev 宣布 Spring Web Flow 2.3.1 已发布。这是一个维护版本,升级了 Spring 3.1.1 和 JavaServer Faces 2.1.7,并包含一些错误修复。
  2. SpringSource Tool Suite 负责人 Martin Lippert 宣布发布了 Cloud Foundry Eclipse 集成 1.0。此版本为所有 Eclipse 发行版(包括 SpringSource Tool Suite)带来了完整、协调的 Cloud Foundry 集成。
  3. Martin *也*宣布了 SpringSource Tool Suite 2.9.1 版本发布,其中包含新功能和错误修复。
  4. <LI>    <a href = "http://www.springone2gx.com/conference/speaker/mark_fisher">Mark Fisher</A> and <a href = "http://www.springone2gx.com/conference/speaker/thomas_risberg">Thomas Risberg</A>'s epic talk from <a href = "http://www.springone2gx.com">SpringOne 2GX 2011</A>  - <EM><A href = "http://www.infoq.com/presentations/Architecture-Choices-for-Scalable-Cloud-Apps">Architecture Choices for Scalable Cloud Apps</A></EM> -  that introduces how to build scalable architectures in the cloud using technologies like Spring Integration and Cloud Foundry is now up on InfoQ. 
    	  </LI>
    	
    
  5. Maciej Walkowiak 发布了一篇博文,介绍如何使用 Spring 3.1 profiles 结合自定义 Tomcat 配置来激活 Spring profiles,而无需更改部署的二进制文件。
  6. Michal Jastak 发布了一篇精彩的文章,介绍了如何使用 Spring MVC 3.1 对 flash attributes 的支持
  7. Tobias Flohre 又回来了,这次带来了两篇关于 Spring Batch 的文章。第一篇文章介绍了 Spring Batch 中事务的基础知识,第二篇文章介绍了基于光标的读取和监听器的重启的一些细节
     </LI> 
    
  8. Artur Mkrtchyan 发布了一篇很棒的文章,介绍了如何安装 Redis(一个快速、高度优化的数据结构服务器),以及如何使用 Spring Data Redis(Spring Data 伞形项目的一部分,方便访问各种所谓的 NoSQL 和大数据存储)来构建与 Redis 通信的 Spring 应用程序

使用 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 版本时注意到 UI 的一些变化。我们尚未完全适应所有变化,因此 STS 的 Maven 支持(例如)尚无法工作。如果您发现其他任何问题,请告知我们。

反馈

这是 STS 的早期访问版本,由我们的 CI 服务器持续更新。如果您在使用 Eclipse Juno (4.2) M5(或更高版本)安装上运行 STS 时遇到问题,请告知我们,并将问题报告到: https://issuetracker.springsource.com/browse/STS。由于我们正计划为 STS 3.0 基于 Eclipse Juno 的发行版做准备,我们非常乐意听取您对此的意见,并尽早收集反馈。

展望

我们计划在 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 是一个开源框架,最初 设计用于支持 map-reduce 风格的批处理解决方案

</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 新闻通讯

通过 Spring 新闻通讯保持联系

订阅

领先一步

VMware 提供培训和认证,助您加速进步。

了解更多

获得支持

Tanzu Spring 提供 OpenJDK™、Spring 和 Apache Tomcat® 的支持和二进制文件,只需一份简单的订阅。

了解更多

即将举行的活动

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

查看所有