Spring 本周讯息,2011 年 11 月 8 日

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

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 社区中所有即将举行的活动。

查看全部