本周 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. 
    

    但是,在这一点上,如果我不提到完全没有配置就可以获得这种确切行为的最简单方法是使用Cloud Foundry,这是一个开源的 PaaS 项目,我将失职。只需将您的应用程序部署到 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 社区中所有即将举行的活动。

查看全部