Hello and welcome to another installment of This Week in Spring! As usual, we've got some great stuff to look at, so let's get to it.
- Want to use SpringSource Tool Suite on the latest Eclipse Juno (4.2) milestone builds? SpringSource Tool Suite lead Martin Lippert has got the answer for you.
- Michal Borek has a great blog post on how to use the
ConversionServicein Spring 3.0+ to convert uploaded file data into a domain object. First, this is a really cool idea. Second, users should be aware that Spring supports file uploads by default if it detects
commons-fileuploador the Servlet 3
javax.servlet.http.PartAPIs present on the classpath. To use this support, simply create a Spring MVC handler that takes a @RequesParam of type
MultipartFile. For an example, see this RESTful API controller that accepts HTTP POST'd file uploads. 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.
- 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 explores some of the many ways that Spring can solve circular dependencies for you.
Blogger Hemraj has a succinct post introducing how you can install the Spring web-tier machinery through the use of context loaders -
- Over on Dr. Dobbs, Adrian Bridgwater's written a fantastic blog about using Spring with the Magnolia CMS with the Blossom integration module for Magnolia.
- 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 how to effectively isolate the errors from the stack frames that are irrelevant 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!
- The Cafe Techno has a great post introducing the idea of an inner bean in Spring.
- I'm sure that you heard all the news a couple of weeks ago about about Spring for Apache Hadoop? Want to get started fast? Check out this Spring for Apache Hadoop quick start with all the details!
- Blogger zousu has a great post introducing how to get started with Spring Data Mongo 1.0.1 GA.
- Roger Hughes is back at it again, this time with a little bit of anecdotal advice on how to integrate Spring into legacy applications. I like to think of this process as Spring cleaning!