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

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

欢迎来到另一期Spring 本周动态!和往常一样,我们有很多内容要介绍,所以让我们开始吧。

  1. SpringSource Tool Suite 已经开源!现在有两个不同的版本可用,为两位不同的开发者提供服务:Spring 开发者,由 Spring Tool Suite 提供服务;Groovy 和 Grails 开发者,由 Groovy/Grails Tool Suite 提供服务。有关这个好消息的更多信息,请查看 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 project on GitHub</A>. The example even  includes <CODE>web.xml</CODE>, even though it isn't required, just as was done in that blog post, specifically because it's more reliable on the buggy versions of JBoss 7 and Servlet 3 environments aren't ubiquitous, yet. 
    		 This is a seriously cool blog post, be sure to read the followups!
    
    	</LI>
    
  3. Joseph Kulandai 发表了一篇关于 Spring ApplicationContext 的不错的入门博客文章,其中包含一些我早已忘记的琐事!做得非常好,Joseph!
  4. 我们之前已经讨论过这个问题,但 InfoQ 的报道也很棒。IG Group 开源 RESTdoclet,这使得为基于 Spring 的 RESTful 服务生成文档变得非常简单。 REST,无论好坏,都没有像 SOAP 的 WSDL 这样的东西,WSDL 枚举了连接到基于 SOAP 的 Web 服务的客户端的接口契约。这项技术填补了这一空白。
  5. Paxcel Labs 有一篇有趣的博客文章,试图揭开 IoC(控制反转)的神秘面纱以及 Spring 如何支持这个概念
    	</LI> 
    
  6. Hybris 博客最近发表了很多关于从客户端角度使用 OAuth 的文章,但这篇文章,特别是介绍了如何设置 Spring Security OAuth
    is the one I've been waiting for!  It's a very nice read, and I'm glad they've shared it with us, complete with working code and a blow-by-blow breakdown of the pieces. OAuth is complex, Spring Security OAuth (not yet GA!) makes it much simpler, but it's still nice to have guidance.
    </LI> 
    
  7. 说到 Spring Security,Java Code Geeks 的博客文章提供了一个经典配方(一个老式但好的配方):如何实现一个由 Hibernate 实体(您自己设计的)支持的 UserDetails 对象
  8. Biju Kunjummen 发表了一篇很棒的博客文章,介绍
    <a href = "http://biju-allandsundry.blogspot.hk/2012/08/spring-configuration-and-factorybean.html">
    	 some of the nuances of using Java-based configuration 
    </a>. Specifically, he reminds us to let Spring provide the lifecycle callbacks by routing things through @Bean methods, instead of instatiating the objects directly. 
    </LI> 
    
  9. 如果您使用 Spring.NET,并且想要利用 AOP 方法拦截,请查看这篇文章!
  10. Spring Data Neo4j 负责人 Michael Hunger 刚刚完成了他的非常酷的 Spring Data Neo4J 网络研讨会(在我们的 YouTube 频道上找到更多精彩内容!),他整理了 一篇后续博客,其中包含有用的资源,例如幻灯片的位置。谢谢,Michael!
  11. Partha Bhattacharjee 继续他的博客系列,介绍 Spring Integration。这一次,他谈到了 Spring Integration 的网关,这使得请求/回复语义交换变得非常简单
    </LI> 
    
  12. Captain Debug 发表了一篇精彩的文章,介绍了如何在 XML 中使用 Spring 3.1 的 profiles 来定义特定于环境的 bean
  13. Halycon 代码博客上有一篇文章介绍了如何使用 Spring 的子上下文,以便您在 import 语句中利用 Spring 的属性占位符解析。通常,这些语句无法看到当前应用程序上下文的属性占位符,但嵌套上下文可以看到父上下文的属性占位符。解决方案?只需在子上下文中实例化 所有内容,以便 import 语句可以使用父上下文的属性!这个技巧有点鬼祟!我喜欢它。

    请记住,子上下文提供作用域 - 在一个子上下文中定义的 bean 无法看到在另一个子上下文中定义的 bean。这使得它对于像 Spring Batch Admin 这样的东西非常有用,它可以让您动态上传和启动新的 Spring Batch 作业(这些作业本身基于 Spring 配置)。

  14. Java Assist 博客上有一篇不错的文章,介绍了 在 3.0 或更高版本中使用 Spring MVC bean 验证。太棒了!
  15. Intelligrape 博客上有一篇关于使用 Grails 对 Spring bean 的支持的快速文章,并利用 Spring 的生命周期回调,特别是 InitializingBean#afterPropertiesSet
  16. <LI>   The Middleware magic blog has a nice, complete post on configuring <A href = "http://middlewaremagic.com/weblogic/?p=8092"> Spring to talk to a JBoss AS 7-managed JMS instance</A>. The  example is particularly involved because of all the work required to setup JBoss and to build up a client connection to it.  </LI>
    

获取 Spring 新闻通讯

保持与 Spring 新闻通讯的联系

订阅

抢占先机

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

了解更多

获得支持

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

了解更多

即将举行的活动

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

查看全部