本周 Spring 动态,2011 年 11 月 8 日

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

Spring 社区又迎来了精彩的一周。你们敢相信现在已经是 11 月 8 日了吗?时间都去哪儿了?

If you blink, we'll be in 2012 already! 
No time to waste - the year might change out from underneath us! - let's dive right into this week's roundup!

  1. Ramnivas Laddad,Cloud Foundry 项目的高级工程师,也是全球范围内广大喜欢在 Spring 应用中使用 AspectJ 的用户的英雄(像我一样!),他发表了一篇精彩的文章,重点介绍了 Cloud Foundry 对服务(如 MySQL、PostgreSQL 和 RabbitMQ)的特定支持。这是系列文章的第二篇。第一篇讲解了 Cloud Foundry 上服务的基础知识。两篇文章都非常棒,细节丰富。
  2. 接下来的这篇博文是我本周看到后会心一笑的博文之一。几周前,我和 Roy Clarkson 在 SpringOne 2GX 上就使用 Spring 进行原生 Android 开发实践做了一场演讲。演讲前一晚,我们坐下来一起过了一遍我们的幻灯片和演示,却发现——自最初准备好一切以来,Eclipse (SpringSource Tool Suite)、Maven 和 Android 之间为了实现互相通信和正常工作所需配置的精妙蛛网,在这几周里已经……被打乱了。尽管我们演讲时使用的是非 Maven 构建,并且获得了巨大的成功,但不得不切换到常规的 Eclipse 构建才能继续演讲,这一点仍然让我们感到懊恼。Roy,一如既往的无畏和勇敢,后来弄清楚了使这一切再次正常工作的正确配置组合,而且——他慷慨大方——他已经在他的博客中记录了所有内容。去看看吧!(我知道我看了!)
  3. Tomcat Expert 在 管理和开发 Apache Tomcat 7 方面有另一篇实用的文章。这篇文章解释了如何通过一些关于可用配置选项的背景知识,将 Apache Tomcat 7 的默认安全配置提升到一个新的水平。
    </LI> 
    
    
    
    <LI> Roger Hughes <a href="http://java.dzone.com/articles/using-jsr-250s-postconstruct">introduces how to use JSR 250's <CODE>@PostConstruct</CODE> and <CODE>@PreDestroy</CODE> annotations</A> to replace the use of the corresponding Spring  callback interfaces, <CODE>InitializingBean</CODE> and <CODE>DisposableBean</CODE>.   </LI> 
    
    <LI>Michal Huniewicz explains <a href= "http://blog.m1key.me/2011/10/wizard-form-with-spring-mvc.html">how to create a wizard form with Spring MVC</a>.  
    	
     His solution's certainly one way to solve the problem (and worth a look), but as Spring MVC engineer Rossen  Stoyanchev  notes in the comments, developers should alternatively consider Spring Web Flow for these types of use cases, as well.
    	
    
  4. <LI>  Yet another great post dissecting one of Spring's oft-misunderstood nuances by Roger Hughes! This post introduces <a href="http://java.dzone.com/articles/using-spring-mvc%E2%80%99s">Spring @MVC's <CODE>@ModelAttribute</CODE></A>. 
    	The attribute can be handy when... what am I doing? <EM>Go</EM>, read the post! It's great!
    	 </LI> 
    	<lI>  Want to run your Spring application on Google App Engine? Want to use their not-quite-there SQL support through Hibernate? Want Hibernate to not be  painful? Use Spring. This post shows <a href= "http://blog.essaytagger.com/2011/11/spring-hibernate-on-google-app-engines.html">how to use Spring to setup <code>HibernateDao</code> on Google App Engine</a>. It sounds like this particular blogger is only using Spring to make the most of Hibernate, which is a shame.  Spring runs really nicely on Google App Engine, and so users are encouraged to exploit its full power in that environment, too.
    
    	</LI>
    	
    		<LI> 
    			Readers of this column will know that we often try to link to posts about Tomcat administration that are <em>real world</EM>. Why? Because Tomcat's powerful and also the most widely used application server for Java developers, and sometimes developers need to blur the lines between developer and system administrator to develop applications in an environment that faithfully replicates production. 
    
    				This week's link, <a href= "http://java-wisdom.blogspot.com/2010/11/apache-load-balancing-for-tomcat.html">on load balancing with  Apache Tomcat by fronting it with Apache HTTPD</a>, is no different. Great introduction, and a great topic. 
    

    不过,此时此刻,如果我不提一句,那将是我的疏忽:获得这种完全无需配置的精确行为的最简单方法是使用开源 PaaS 项目 Cloud Foundry。只需将您的应用程序部署到 Cloud Foundry,然后增加该应用程序的实例数量。您将立即获得已部署实例之间的轮询调度。在开发或生产环境中,这都非常快速和简便!只是随便说一下……!
    			 </LI>
    	<LI> Ashish Sarin, as readers of this column will know, really digs Spring Roo. He's just announced a Spring Roo podcast, and I couldn't be happier. 
    		 I'll certainly be checking it out, and you should too. Here's the <a href="http://spring-roo.blogspot.com/2011/10/spring-roo-podcast.html">announcement with details</a>.
    		 </LI>
    	<LI>Chad Lung has put together a great introduction on <A href= "http://java.dzone.com/articles/build-spring-data-project">how to build  a Spring-Data project with MongoDB in under 5 minutes using Netbeans 7 and Maven</a>.  Spring makes it easy, no matter which build tool and IDE you're using, of course, but it's nice to have specific goals in mind when approaching this sort of integration, and this post is <EM>nothing</EM> if not specific! Read on!   
      </LI>
    <LI>The United States Navy used Magnolia, the CMS, along with Spring to build their <a href="http://www.navy.com">Navy.com</A> portal and landing page. The web site is - among other things - the focal point of a high volume recruitment campaign here in the US. 
    	Magnolia's putting on a webinar  that explains  "how Campbell Ewald (Navy's digital agency) used Magnolia's Blossom module for straightforward app integration and how Blossom enabled Spring developers to work efficiently with Magnolia CMS right from the start."
    	This could be interesting indeed. To learn more,  <a href= "http://www.magnolia-cms.com/landing/webinar-navy.html">check out the webinar registration page.</a> 
    	  </LI>
          	<LI> 
    	Using <a href="http://www.vmware.com/products/vcloud-director/overview.html">vCloud Director (VMware's turnkey IaaS solution)</a>? Want to publish notifications about system state using AMQP (and RabbitMQ)? <a href="http://cloud.dzone.com/articles/how-setup-rabbitmq-amqp-vcloud">Read this post</a>. 'Nuff said.
    	</LI>
    
          
    

获取 Spring 新闻通讯

通过 Spring 新闻通讯保持联系

订阅

领先一步

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

了解更多

获得支持

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

了解更多

即将举行的活动

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

查看所有