Engineering
Releases
News and Events

This Week in Spring - January 1, 2013

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.

  1. The epic book by Spring Security lead Rob Winch and Peter Mularien on Spring Security 3.1 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.
  2. 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 demonstrates the configuration and base contract of a logout handler.
  3. 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!
  4. The Java Kart blog has a nice post that introduces Spring Data Redis with the JRedis client library
  5. 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.
  6. The Cafe Techno has a nice post on the complete setup of a SimpleFormController in 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.
  7. The Developer's Diary blog has a nice post on autowiring a map, list, or array using Spring annotations
  8. 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 web.xml).
  9. The all and sundry blog has a nice post on Spring Data JPA and pagination
  10. 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.
  11. This post is also in Chinese, and shows the various kinds of dependency checking in Spring.
  12. http://manikmagar.wordpress.com/2013/01/01/spring-mybatis-integration-and-junit-testing-using-springs-embedded-database/
  13. 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
  14. The Fish blog (also in Chinese) has a nice post on using the Danga memcached client from Spring.
  15. 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!
  16. The Dinesh on Java blog has a nice, introductory post on using Spring MVC interceptors. Good stuff!
comments powered by Disqus