本周 Spring 动态 - 2012 年 9 月 18 日

工程 | Josh Long | 2012 年 9 月 19 日 | ...

欢迎来到又一篇《本周 Spring 动态》!这周我在伊利诺伊州布鲁明顿-诺默尔,与 StateFarm 讨论 Spring 项目:MVC、REST、移动和 Android。这里的开发者都是代码忍者。听了一整天他们的内部讲座,至少可以说,非常令人大开眼界。不要错过在华盛顿特区举行的年度 Spring、Groovy 和 Grails 活动:SpringOne2GX。如果你还没注册,现在就是时候了!哦,别忘了,如果你在美国,今天是全国芝士汉堡日!所以…祝你好胃口!

    <LI> Chris Beams has announced the availability of <a href ="http://www.springsource.org/node/3654">Spring Framework 3.2 M2</a>, which features many new features including improved <CODE>TestContext</CODE> support, Spring MVC improvements, asynchronous <CODE>@Controllers</CODE>, and lots of bug-fixes and improvements.  </LI>
    <LI> This month's SpringSource webinar is coming fast - <a href ="http://www.springsource.org/node/3653"> Spring Security with Rob Winch</a>. Be sure to register now! </LI>
    <li> Martin Lippert has announced the availability  of the <a href="http://www.springsource.org…

本周 Spring 动态 - 2012 年 9 月 11 日

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


欢迎来到又一篇《本周 Spring 动态》!我将前往挪威奥斯陆参加 JavaZone 大会,与大家探讨如何在 Cloud Foundry 上使用 Spring IntegrationSpring Batch。再说一次,这是一个自然的用例:Cloud Foundry 使扩展以处理最大工作负载变得容易,而 Spring Integration 和 Spring Batch(大概运行在 RabbitMQ 之上)则负责底层管道并承担集群中工作负载分布的重任。

 <P>Wrapping up from last week's Cloud Foundry   Open Tour - India, touring <a href="http://opentour.cloudfoundry…

本周 Spring 动态 - 2012 年 8 月 28 日

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

欢迎回到又一篇《本周 Spring 动态》,VMWorld 特别版!我们正在 VMWorld 活动现场,与开发者们讨论 Spring 和 Cloud Foundry。这次活动有很多令人兴奋的新闻,包括围绕 vFabric 的一些有趣更新以及关于 Cloud Foundry 本身时间表的更新:由 VMware 托管的 PaaS 产品 CloudFoundry.com 将在年底前全面发布 (GA),明年将推出私有的本地 Cloud Foundry。无论是 vFabric 还是 Cloud Foundry 都是 Spring 应用的理想环境,很高兴看到这些平台不断发展。

  1. Oliver Gierke 宣布 Spring Data Release Train 已抵达车站! 这个版本是一个涵盖多个项目的总发布,为各个模块提供了一致性。
    	This release includes Spring Data Commons 1.4.0.RC1, Spring Data JPA 1.2.0.RC1, 
    	Spring Data MongoDB 1.1.0.RC1, Spring Data Neo4j 2.1.0.RC3 and Spring Data Gemfire 1.2.0.RC1.
    	
    	
    	  </LI>
    <LI> Gunnar Hillert has a nice blog introducing how to <a href = "http://blog.springsource.org/2012/08/23/spring-integration-extensions/">bootstrap custom Spring Integration adapter development.</a>
    	 
    	 </LI>
    
    <LI>  Gary Russel has announced that the latest iteration of  <a href  = "http://www.springsource.org/node/3639">Spring Integration, 2.2.0M4, is now available</a>.  Gary, a very busy man indeed…

将 Spring MVC 与 jQuery 集成以实现验证规则

工程 | Michael Isvy | 2012 年 8 月 29 日 | ...

我很高兴在最近的一份 zeroturnaround 调查中看到 Spring MVC 被评为 Java 最受欢迎的 Web 框架。

这个框架非常灵活,有几十种使用方法。对于所有具有众多选项的灵活框架来说,讨论常用实践非常重要。

我为这篇博客文章创建的项目使用了许多 Spring MVC 应用中常见的特性。你会发现类似这样的内容

在控制器中,你会找到典型的 Spring MVC 特性,用于映射请求、通过注解提取请求数据、数据绑定、文件上传等…

关于…

社区驱动的 Spring Integration 扩展

工程 | Gunnar Hillert | 2012 年 8 月 23 日 | ...

Spring Integration 团队自豪地宣布 Spring Integration Extensions 仓库已可用。这个基于GitHub的新仓库的主要目标是促进一个充满活力的适配器和扩展开发者社区,并鼓励更广泛的社区成员为项目做出贡献。Spring Integration Extensions 项目托管在

这个新仓库将使我们能够更快速地整合新的贡献,而不必经过核心 Spring Integration 框架更严格的审查流程。由于每个社区贡献的扩展在 Spring Integration Extensions 仓库中都是一个独立的项目,它将拥有自己的发布生命周期,独立于核心 Spring Integration 框架的生命周期。因此,这将允许更频繁的发布。

随着时间的推移,我们预计一些使用较少的 Spring Integration 模块可能会迁移到 Extensions 仓库。另一方面,对于一些扩展模块,Spring Integration Extensions 项目也可能充当孵化器,最终可能被纳入核心 Spring Integration 框架。

得益于社区的几项贡献,新仓库已经提供了几个适配器,例如 XQuery Adapter(包括对 XPath 2.0 的支持)和 SMB Adapter。未来几周将添加一些围绕 Amazon Web Services (AWS) 的适配器(Amazon S3Amazon SNSAmazon SQS)。此外,我们还提供了 Print Adapter 的早期版本,并且我们还在开发一个使用 Atmosphere 提供 WebSocket 支持的适配器。

如何成为贡献者?

如果您对新的扩展和/或适配器有想法,请随时提交 JIRA 票据。如果您已经创建了一个扩展模块并希望贡献代码,请 fork Spring Integration Extensions 仓库,添加您的模块并提交 pull request。但是,在我们合并您的代码之前,您必须填写 贡献者许可协议。提交后,我们和/或其他社区成员将审查您的 pull request 并进行合并。有关更多详细信息,请仔细阅读 Spring Integration Extensions 项目的 贡献者指南

创建新的 Spring Integration 扩展模块

一种比较流行的扩展类型是 Spring Integration Adapters。为了简化为 Spring Integration 编写自定义适配器的过程,我们现在为 SpringSource Tool Suite (STS) 3.0.0 提供了一个 Adapter Template。这个模板将使贡献者非常容易快速构建新的适配器,同时仍确保与核心 Spring Integration 框架中提供的适配器保持一致(包结构、命名约定、命名空间处理器/解析器等)。

Spring Integration Adapter TemplateSpring Integration Templates 项目的一部分,它创建一个功能齐全的 Spring Integration Module,并且该模板将创建以下常用组件

  • 入站通道适配器
  • 出站通道适配器
  • 出站网关

该模板不仅将创建核心 Java 类和一些基本单元测试,还将提供 XML 命名空间支持,其中包括 XML Schema 和相关的解析器类。即使您创建其他类型的组件,此模板仍应为您提供有关如何开发这些组件的宝贵见解。有关使用 STS 模板进行 Spring Integration 的更多信息,请参阅以下博客文章

创建的适配器项目将使用 Gradle 作为其构建工具,并且它密切遵循 Spring Integration 定义的构建任务

构建适配器项目

    $ ./gradlew build
将适配器项目安装到本地 Maven 仓库

    $ ./gradlew install
生成 JavaDoc

    $ ./gradlew api
使用 Sonar 生成指标

    $ ./gradlew sonar
构建完整分发包

    $ ./gradlew dist

有关更多信息,请参阅 Spring Integration Extensions Wiki 上的 如何创建新组件

更多资源

Spring Integration GitHub 仓库

为了完整起见,这里列出了所有与 Spring Integration 相关的 GitHub 仓库

本周 Spring 动态 - 2012 年 8 月 21 日

工程 | Josh Long | 2012 年 8 月 21 日 | ...

欢迎来到又一篇《本周 Spring 动态》!本期汇总了来自网络各地的精彩内容。如果您有内容建议,或者只是想直接获取我们发布的部分内容,请在 TwitterGoogle+ 上关注我们。像往常一样,我们有很多内容需要回顾,所以让我们开始吧。

  1. 本周首先要介绍的是,SpringSource Dev YouTube 频道上有大量新内容可用。
    	The video from  Spring Data Neo4J lead Michael Hunger's excellent webinar <a href = "http://www.springsource.org/node/3632">introducing Spring Data Neo4j</a> is also available. 
    

    VMWare 工程师 Jerry Kuch 的网络研讨会视频也已发布,提供了关于 RabbitMQ 新功能 的更新。最后,我和 Ken Rimple、Srini Penchikala 共同进行的关于 如何更充分利用 Spring Roo 交互式附加机制 的网络研讨会视频也已发布。

  2. Spring Security OAuth 项目负责人 Dr. David Syer 宣布 Spring Security OAuth 1.0.0.RC2 现已可用。
  3. 	<LI> Remember our pal Tobias Trelle? He's got another fantastic article that's been published on InfoQ called <a…

本周 Spring 动态,2012 年 8 月 14 日

工程 | Josh Long | 2012 年 8 月 15 日 | ...

欢迎来到又一篇《本周 Spring 动态》!像往常一样,我们有很多内容需要介绍,所以让我们开始吧。

  1. SpringSource Tool Suite 已开源!现在有两个不同的版本可用,分别支持两种不同的开发者:由 Spring Tool Suite 服务的 Spring 开发者,以及由 Groovy/Grails Tool Suite 服务的 Groovy 和 Grails 开发者。有关这则重磅新闻的更多详情,请查看 Tool Suites 项目负责人 Martin Lippert 的博客。
  2. Spring Security 项目负责人 Rob Winch 宣布了最新版本的 Spring Security,版本 3.1.2,已发布
    	 </a>
    <LI> The ZeroTurnaround blog has a <EM> really</EM> cool little blog on rapid development with Spring and Hibernate. 
    	 Of course, Zero Turnaround has a handy little software agent that lets you reload Java classes on the fly. So that's a <EM>huge</EM> gain in productivity right there. That, coupled with XML-free Spring 3.1 and Hibernate 4.1, and you have yourself a <Em>really</EM> awesome combination. To learn more, check out the blog!  The example he illustrates are also well <a href = "http://github.com/cloudfoundry-samples/springmvc-hibernate-template">represented in this sample…

SpringSource Tool Suites 3.0.0 发布 - 重组、开源并登陆 GitHub

工程 | Martin Lippert | 2012 年 8 月 13 日 | ...

引言

我们很高兴宣布我们基于 Eclipse 的开发者工具的最新主要版本现已可用。这是一个重大发布,不仅带来了新功能,还因为其他重要的改变,如组件化、开源化以及我们首次提供了多种分发版本,每个版本都针对不同类型的开发者量身定制。让我们看看详细信息

Spring Tool Suite 和 Groovy/Grails Tool Suite

过去,SpringSource Tool Suite 以完整分发包的形式提供下载,大多数 Spring 开发者可以即时使用。相比之下,Groovy/Grails 开发者需要手动在其开发环境中安装多个扩展才能开始使用。这种情况已改变。我们现在提供两种完整的分发版本

  • Spring Tool Suite: Spring Tool Suite 是我们基于 Eclipse 的工具的完整分发版本,预装了处理 Spring 项目所需的所有必要组件。它包括对 Spring Core 框架本身、Spring Integration、Spring Batch、Spring Webflow、Spring Data 等众多技术的支持。它包含了最新版本的 tc Server Developer Edition 和 Spring Roo,最新的 Eclipse Maven 集成,并基于最新的 Eclipse Juno 4.2 版本构建。这与之前被称为 SpringSource Tool Suite 的内容非常相似。
  • Groovy/Grails Tool Suite: Groovy/Grails Tool Suite 是我们基于 Eclipse 的工具的完整分发版本,专为 Groovy 和 Grails 开发而定制。它预装了 Groovy-Eclipse 以及我们的 Grails 工具,支持直接部署到 tc Server,并随分发包提供一个即时可用的 Grails 安装。它也基于最新的 Eclipse Juno 4.2 版本构建,为我们的 Groovy-Grails 用户提供即时可用的体验。

开源并登陆 GitHub

我们坚定地致力于开源,并积极参与到我们工具所包含的许多开源项目中,例如 AspectJ、AJDT 和 Groovy-Eclipse。Spring IDE,过去是 SpringSource Tool Suite 的主要部分之一,也一直是开源的。现在,我们在 GitHub 上的 SpringSource 组织下,根据 Eclipse Public License 开源了所有工具套件的部分。以前作为 Spring 工具商业附加组件的部分,例如 Spring Roo 的集成,或提供更好的内容辅助、更好的代码完成和高级重构支持的附加组件,以及 Spring 项目模板,都已贡献给 Spring IDE 项目。其他部分则被提取到全新的开源项目中,例如 tc Server 的 Eclipse 集成。

组件化项目

为了允许独立安装和更好地模块化工具套件的不同部分,我们已将不同部分组件化到各自的项目中。它们都位于 GitHub,提供各自的每晚更新站点,并且可以单独安装到纯净的 Eclipse JEE 安装中。
  • Spring IDE: 这为您带来了与 Spring 框架协作所需的所有工具,以及对各种额外 Spring 相关技术的集成,例如 AJDT、Spring Integration、Spring Webflow、Spring Data、Spring Security 和 Spring Roo。以前仅属于 STS 的 Maven 和 Spring Roo 支持已被集成到此项目中。(https://github.com/SpringSource/spring-ide)
  • Grails IDE: 为您带来完整的 Grails 开发者工具,以前可以从仪表盘安装到 SpringSource Tool Suite 实例中。它基于 Groovy-Eclipse 项目构建。(https://github.com/SpringSource/grails-ide)
  • Eclipse Integration for tc Server: 此组件提供了创建新的 tc Server 实例、使用现有实例、直接从工作区部署和更新应用、配置 tc Server 实例以及激活 Spring Insight 的能力。(https://github.com/SpringSource/eclipse-integration-tcserver)
  • Eclipse Integration for Gradle: 这在 Eclipse 中提供了 Gradle 支持。它允许用户直接导入配置了 gradle 的项目,并根据 gradle 配置自动管理依赖项。它还允许直接从 Eclipse 执行 gradle 任务。(https://github.com/SpringSource/eclipse-integration-gradle)
  • Eclipse Integration Commons: 此项目包含上述组件通用的共享基础设施。此外,它还包含 UAA 和 SpringSource Dashboard。(https://github.com/SpringSource/eclipse-integration-commons)

由于此次重组和开源,这些项目之间的依赖性减少了。因此,如果您愿意,可以从项目的更新站点单独使用它们,并且只会引入最少的依赖项。例如,VMware vFabric tc Server 的 Eclipse 集成可以安装到纯净的 Eclipse JEE 中,而无需同时安装 Spring IDE、Grails IDE 或其他组件。您始终可以使用仪表盘(随每个项目,如 UAA,一起提供)轻松将其他项目添加到现有安装中,以满足您…

本周 Spring 动态 - 2012 年 8 月 7 日

工程 | Josh Long | 2012 年 8 月 07 日 | ...

欢迎来到又一篇《本周 Spring 动态》!像往常一样,我们有很多内容需要介绍,所以让我们开始吧!

  1. 我简单地评阅了 Manning 的新书《 Spring Roo 实战》。看看这本书吧!
    </li>
      <LI> The <a href = "http://bit.ly/QWSrml">Cloud Foundry Integration for Eclipse Now Supports Tunneling to Services</a>. This increases the parity betwen the Eclipse support (and the SpringSource Tool Suite support)  and the <CODE>vmc</CODE> command-line client.  </LI>
    	
    
    	<LI> The VMware has a very cool blog taking a look the roles Spring and RabbitMQ play in 
    		 <a href = "http://blogs.vmware.com/vfabric/2012/07/spring-and-rabbitmq-behind-indias-12-billion-person-biometric-database-1.html">in the new project behind India's 1.2 Billion Person Biometric Database</a>. <EM>Very</EM> cool…

史上最神奇的 Java 类型声明

工程 | David Turanski | 2012 年 8 月 03 日 | ...

我很乐意认为我对 Java 和泛型相当熟悉,但最近我遇到了这段 Java 代码,它让我停下了脚步

public abstract class AnnotationBasedPersistentProperty<P extends PersistentProperty<P>> extends AbstractPersistentProperty<P> {..}

这个类是 Spring Data 框架的 Repository 支持的内部部分,它消除了实现数据访问层时编写样板代码的需要,并且还为将领域对象映射和管理对任何类型持久化存储的数据访问提供了一个通用的编程模型。  Spring Data 当前的 Repository 实现包括关系型数据库 (JPA)、GemfireMongoDB、 Neo4j

幸运的是,如果您在 Java…

获取 Spring 新闻通讯

订阅 Spring 新闻通讯,保持联系

订阅

先行一步

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

了解更多

获得支持

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

了解更多

即将到来的活动

查看 Spring 社区所有即将到来的活动。

查看全部