I almost typed 2012 when I composed this post! It’s already 2013!
I hope your holidays were wonderful.
Welcome back to another installment of This Week in Spring!
It’s time to begin another exciting new year (and to remember to use the correct new year in text!). With that, let’s have a look at
the new and exciting content from all around the community.
- Chris Shayan has a nice post that illustrates how Spring Batch can help make short work of complex enterprise-y batch processing, complete with code and examples! Nice job!
- The Java Kart blog has a nice post that introduces Spring Data Redis with the JRedis client library
- Desam Venu Madhava Reddy has a very simple post identifying some of the main reasons why people use Spring.
There are many reasons people come to Spring, and these are some of the very high level ones.
- The Cafe Techno has a nice post on the complete setup of a
SimpleFormControllerin Spring MVC. The example uses Spring MVC and explicitly wires up the machinery for working with Spring MVC. You don’t need to do much of this in Spring 2.5 (introduced in 2007) and later, instead relying on the defaults and conventions. That said, if you want to override the framework, then understanding some of these things are wired together can be very helpful.
- The Developer’s Diary blog has a nice post on autowiring a map, list, or array using Spring annotations
- This blog is in Chinese, and has a simple example of how to setup a Spring MVC 3.2 example. NB: I’d recommend using the Java-centric configuration for this, as this is needlessly XML-centric. In a Spring 3.1+ and Servlet 3 environment, there’s no need for XML (for Spring MVC or
- The all and sundry blog has a nice post on Spring Data JPA and pagination
This post is in Japanese, and from what I can gather it’s aimed at showing how to build a lean Spring application using MyBatis, Freemarker, etc.
- This post is also in Chinese, and shows the various kinds of dependency checking in Spring.
- I had some time over the holiday and decided to quickly scratch one item off of my 2012 new years resolutions (I got it done before new years, and besides, better late than never!): I migrated my photos away from my Flickr account to another service which was cheaper and more invested in. To do this, I used the community-supported Spring Social Flickr project. The project is, decidedly, not yet finished, but works well enough. I forked it and added a Spring Batch downloader which reliably downloads all the photos into albums named for the ID of the https://github.com/joshlong/spring-social-flickr
- The Fish blog (also in Chinese) has a nice post on using
the Danga memcached client from Spring.
Simon Massey has a nice post on server-side pagination with ZK (a widget-centric web framework), Spring Data MongoDB and Google Maps. Do I need to say anymore? Check it out!
- The Dinesh on Java blog has a nice, introductory post on using Spring MVC interceptors. Good stuff!
<LI> The epic book by <a href="https://twitter.com/rob_winch/status/284812769197441024">Spring Security lead Rob Winch and Peter Mularien on Spring Security 3.1</a> by Packt publishing is now out! The book is a great resource for people who are looking at Spring Security and want the scoop from the source. </lI> <LI> Are you using Spring Security to handle login and logout in your application? Sometimes it's necessary to tailor the behavior of how login and logout are accomplished. Perhaps you need to tear down some state or do logging. In any event, this post <a href="http://javaiscoool.blogspot.com/2012/12/spring-security-implement-logout-handler.html"> demonstrates the configuration and base contract of a logout handler</a>. </LI>