Spring 本週報:2012 年 3 月 20 日

工程 | Adam Fitzgerald | 2012 年 3 月 20 日 | ...

大家好,歡迎來到新一期的Spring 本週報!和往常一樣,我們有一些很棒的內容要介紹,讓我們開始吧。

  1. 	Want to use SpringSource Tool Suite on the <a href = "http://blog.springsource.org/2012/03/14/early-access-springsource-tool-suite-for-eclipse-juno-4-2/">latest Eclipse Juno (4.2) milestone builds</A>? 
    	SpringSource Tool Suite lead Martin Lippert has got the answer for you.
    	  </LI>
    
    
    <LI> Michal Borek  has a great blog post on how to use the <a href = "http://www.greenpath.pl/2012/03/spring-framework-and-file-upload/"><CODE>ConversionService</CODE> in Spring 3.0+ to convert uploaded file data into a domain object</A>. First, this is a <EM>really</EM> cool idea. Second, users should be aware that Spring supports file uploads by default if it detects <CODE>commons-fileupload</CODE> or the Servlet 3 <CODE>javax.servlet.http.Part</CODE> APIs present on the classpath. To use this support, simply create a Spring MVC handler that takes a @RequesParam of type <CODE>MultipartFile</CODE>. For an example, see this RESTful API controller that <a href ="https://github.com/SpringSource/html5expense/blob/master/server/api/src/main/java/com/springsource/html5expense/controllers/ExpenseReportingApiController.java">accepts HTTP POST'd file uploads</A>.  If all you want is to manipulate the file data, then this is easy. The idea proffered in this post is to take it a step further, and bind that data to a domain model object. </LI>
    	
    <LI> Gal Levinsky has an interesting post on removing circular dependencies in Spring applications. 
    	He discusses the problems created by circular dependencies - i.e. one bean depending on another which is in turn in some way depended on by the first bean - and then <a href  = "http://gal-levinsky.blogspot.com/2012/03/resolve-circular-dependency-in-spring.html">explores some of the many ways that Spring can solve circular dependencies for you</A>.  
    	 </LI>
    <LI>
    

    部落客 Hemraj 發表了一篇簡潔的文章,介紹如何透過使用 context loaders – ContextLoaderListenerContextLoaderServlet安裝 Spring 網路層機制

    </LI>
    
     <LI> Over on Dr. Dobbs, Adrian Bridgwater's written a fantastic blog <a href = "http://drdobbs.com/mobile/232602788">about using Spring with the Magnolia CMS</A> with the  
    	Blossom   integration module for Magnolia. 
    	
    	 </LI>
    	<LI>Spring, as a technology, is a collection of libraries that you can layer into your application with ease. It provides powerful support, usually in the term of adapter code that's exposed as AOP aspects. While this is a good thing (TM), it can make for some very deep stack traces! With Spring, however, at least you can disassemble the layers by removing libraries. The problems are far worse with other, more monolithic technologies. 
    		So, blogger Tomasz Nurkiewicz has written a simple post on <a href = "http://nurkiewicz.blogspot.com/2012/03/filtering-irrelevant-stack-trace-lines.html">how to effectively isolate the errors from the stack frames that are irrelevant</A> in diagnosing a problem (Spring's frames, for example). Cool post, and it mirrors something I'm sure many of us have done at some point or another, ourselves! </LI>
    
    <LI> The Cafe Techno has a great post introducing the idea of an <a href = "http://thecafetechno.com/tutorials/spring/what-is-inner-bean-in-spring-framework/">inner bean in Spring</A>.
    
    	</LI>
    	<LI>  I'm sure that you heard all the news a couple of weeks ago about about <a href="http://www.springsource.org/spring-data/hadoop">Spring for Apache Hadoop</a>? Want to get started fast? Check out this <a href = "http://news.oss.tw/node/13707">Spring for Apache Hadoop quick start</a> with all the details!   </li>
    
    		 <LI> Blogger <EM>zousu</EM> has a great post introducing  <a href = "http://zousu.com/wp/get-started-with-mongodb-with-spring-data-1-0-1-ga-release/">how to get started with Spring Data Mongo 1.0.1 GA</A>. </LI> 
             
    		<LI> Roger Hughes is back at it again, this time with a little bit of anecdotal advice on <a href = "http://java.dzone.com/articles/integrating-spring-legacy">how to integrate Spring into legacy applications</A>. I like to think of this process as <EM>Spring cleaning</EM>!   </LI>
    

取得 Spring 電子報

隨時關注 Spring 電子報

訂閱

領先一步

VMware 提供培訓和認證,加速您的進展。

了解更多

取得支援

Tanzu Spring 在一個簡單的訂閱中提供 OpenJDK™、Spring 和 Apache Tomcat® 的支援和二進位檔案。

了解更多

即將到來的活動

查看 Spring 社群中所有即將到來的活動。

檢視全部