Spring 本周动态 - 2012 年 4 月 24 日

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

欢迎回到新一期的 *This Week in Spring*!在编辑这篇文章时,我正在焦急地等待 Costin Leau 在阳光明媚、美丽的乌克兰基辅开始他关于使用 Spring 进行 NOSQL 的演讲,这是 Cloud Foundry Open Tour 欧洲站的第一站。这次活动的参与人数非常惊人!如果您正在阅读这篇文章,那么您已经错过了参加基辅活动的机会,但请务必注册即将到来的 莫斯科伦敦 活动。

  1. 在 SpringOne 2GX 2011 会议上,Mark Fisher 和 Thomas Risberg 通过用 NoSQL 数据库更改其关系数据库,引入模块化,添加多语言支持以及使用通用企业集成模式整合消息队列和事件驱动的请求处理,转换了一个单体企业应用程序
  2. 你们有没有注意到 *优秀的 Spring Roo 实战* 的最终版本已经发布了?
        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.org/spring-integration">Spring Integration</A>, and provides a very powerful example of how to use the Spring Integration JMS adapter and the AMQP adapter. 
    		
    		
    		</LI>
    
     <LI>
    	
    	 The <em>doanduyhai</em> blog 
    	has a great entry on how to use Spring Security to solve a common problem: how do I <a href = "http://doanduyhai.wordpress.com/2012/04/21/spring-security-part-vi-session-timeout-handling-for-ajax-calls/">detect a user session timeout with an Ajax request</A>?  The example comes complete with an introduction and a lot of sample code. 
    		 </LI>
    		
    		
    
  4. *furiousbob* 博客发布了一篇很棒的文章,介绍如何使用 Scala 使用 Spring MVC 构建 RESTful 服务
  5. 博主 *Carlo Scarioni* 发表了一篇很棒的博客,介绍如何创建 自定义 Spring 3 XML 命名空间
  6. 博主 *Duck Ranger* 继续他的系列文章的第二部分 介绍如何使用 SpringSource Tool Suite 设置 Spring MVC 应用程序。这个博客超越了对内置模板的依赖,并且着眼于定制 Spring MVC 请求映射。
     </LI>     
    
  7. simple-spring-memcached client,版本 2.0 已发布。该项目是 Memcached 缓存服务器的 Spring 集成。它提供了一种配置缓存行为的方式。这个 API 非常棒,但我(个人)希望看到 Spring 3.1 CacheManagerCache 的实现。
    </LI>
    
  8. 博主 *benkiew* 发布了一篇博客,解释了如何 检索对 prototype 作用域 bean 的引用,该引用已使用一些支持的 Spring 注释(@Resource@Autowired@Inject)注入。这个问题很容易想象:假设我有一个绑定到 HTTP 作用域的 bean。 每次在唯一的 HTTP 请求中访问它时,它都会被重新创建。作用域确保 bean 仅在每个作用域中唯一地重新创建一次。因此,在单个 HTTP 请求期间对同一 HTTP 请求作用域 bean 的十次访问将导致相同的引用,但跨两个不同请求的单独访问将导致创建两个 bean。到目前为止,这与我们期望的结果很好地匹配。当我注入对 作用域的 bean - 或者它的作用域比作用域的 bean 更长的 bean 的引用时会发生什么?在这种情况下,您需要一个 作用域代理 - 一个管理(并在适当的时候刷新)对 bean 的访问的代理对象。
     Here's a very simple <a href = "https://raw.github.com/gist/2478860/2f736a21a97649c2c1a60c8780c546d4fe62d90c/gistfile1.java">example of injecting a <em>scoped proxy</EM> that is recreated each time the bean is used</A> (e.g., it's recreated each time it's accessed). 
    	
    	</LI>
    <LI>  The Java Code Geeks has a great blog that <a href = "http://www.javacodegeeks.com/2012/04/aop-made-easy-with-aspectj-and-spring.html ">introduces AOP</A> (drawing inspiration from  <a href = "http://blog.springsource.org/author/ramnivasl/">Ramnivas Laddad's</A> excellent book <EM>AspectJ in Action</EM>).   </LI>
    
    
    
    <LI>  The <EM>Hot Java</EM> blog has a step-by-step recipe for <a href = "http://javabrowsers.blogspot.com/2012/04/spring-mvc-in-netbeans.html">creating a Spring MVC project using Netbeans</A>.  </LI>
    
    <LI>  Blogger <em>Petri Kainulainen</em> has put together the next installment of a series of blogs focused on Spring Data, this time introducing the <a href = "http://www.petrikainulainen.net/programming/spring-framework/spring-data-jpa-tutorial-part-seven-pagination/">pagination and <CODE>Pageable</CODE> support</A>. 
    	 </LI>
    <LI>
    	
    	  The <em>prabinhada</em> blog has a  great look 
    	  <a href = "http://prabinhada.blogspot.com/2012/04/how-to-integrate-jsf20-with-spring-30.html">at how to setup JSF and Spring</A>. The Spring-JSF integration provides the ability to reference and rely on  Spring beans from JSF. Spring 
    	can also manage backing beans. This example gives all the painstaking details of the integration. 
    	Another approach is to <a href = "http://www.springsource.org/roo">use Spring Roo 1.2</A> or later , to create a simple JSF application with <CODE>web jsf setup</CODE> command.
    	This approach will let you choose one of two JSF implementations, setup a theme, setup the internationalization, and much more, all for a few minutes of banging around on the shell.
    	 
    	 </LI>
    	 
    

获取 Spring 新闻通讯

保持与 Spring 新闻通讯的联系

订阅

更上一层楼

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

了解更多

获取支持

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

了解更多

即将举行的活动

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

查看全部