The Spring Blog

News and Events

This week in Spring: February 22nd, 2011

What a week! Lots of good, foundational content available this week from, and for, the community. Let's get right to it.

     <li> <a href="">Rossen Stoyanchev</a> continues the whirlwind introduction to the new features in Spring 3.1, this time with a look at the MVC namespace and @Configuration-based improvements. </li>
  1. Chris Beams blogged about the upcoming FeatureSpecification support in Spring 3.1 Feature Specifications provide the same features as the XML namespace infrastructure elements, like <tx:annotation-driven>, in a Java configuration-centric way. This is a very powerful feature, and this blog post is the best way to get started.

  2. SpringSource Tool Suite
    lead Christian Dupuis - tweets that users can now download STS without submitting to the registration form. Very cool!

  3. <li> Can't get enough Spring? 

    Check out Spring on your favorite social network!

  4. Glyn Normington has just announced the Eclipse Virgo 3.0.0.M01 release
    is now available for download. The new version
    features tighter integration with the Eclipse stack, including the Eclipse Virgo Jetty server. Additionally it features tighter integration with Equinox.

               Last week, the Spring Integration team released 2.0.3 of the Spring Integration framework. Lots of good fixes and features in this release. Additionally, it's a minimum version to work with the latest Spring BlazeDS release,  <a href="">so check it out now.</a> 
              <li> Dr. Mark Lui and others at <a href="">Shopzilla</a> have put together a post on their <a href="">use of the Spring Integration framework at Shopzilla and how to use it.</a> Pretty cool, guys!  

  5. So excited was Nicolas Labrot about the prospect
    of using Grails as a view in Spring MVC after seeing it announced
    in the upcoming Spring 3.1 features that he went and implemented a prototype of the feature. Check it out! Looks promising.
  6.                  <li> Ken Rimple, co-author of the upcoming <em>Spring Roo in Action</em> has written up an
                       introduction to the Spring Container's support for BeanPostProcessors, which allow you to tailor the way beans in the context are registered. This is a very good introduction to one of the Spring container's most powerful features. <a href="">Check it out! </a> </li>
                  Cody Burleson</a>  pens an introduction to using <a  href="">Spring, the Dojo JavaScript framework, and WebSphere portlet support in RAD</a> together.  
                       <li>The Java Code Geeks are at it again, this time with a look at their view    <a href="">domain-driven design using Spring and AspectJ.  

Spring 3.1 M1: MVC Namespace Enhancements and @Configuration

In this 5th post of the series describing Spring 3.1 M1 features, I will focus on web applications. In the first half I’ll discuss enhancements to the MVC XML namespace. Then I’ll show how to create the equivalent of the MVC namespace with all Java configuration. At the end I mention some of the Servlet 3.0 related configuration changes you can expect in 3.1 M2.

MVC Namespace Improvements

Spring MVC 3.0 provided a custom MVC namespace. The centerpiece of the namespace – the <mvc:annotation-driven> element, configured everything required to process requests with annotated controller methods. More importantly though it set up a range of defaults that go along with having to do with type conversion, formatting, validation, reading and writing of the body of requests and respones and so on.


SpringOne 2GX 2010 Tech Talk: Groovy.DSLs (from: beginner, to: expert)

SpringOne 2GX 2010 Tech Talk: Groovy DSLs
InfoQ SpringOne 2GX 2010 Groovy.DSLs (from: beginner, to: expert) Groovy Guillaume Laforge

Guillaume and Paul Mark provide:

  • A myriad of DSL examples from specialized computing requirements to general business tasks
  • Characteristics to keep in mind when creating your own DSL
  • Details about Groovy's DSL advantages including flexible and malleable syntax, runtime meta-programming, regular expression pre-processing as well as being a Java based runtime
  • Pitfalls and problems to avoid with concrete examples

Many thanks to InfoQ for covering SpringOne 2GX 2010 and providing this outstanding presentations to the community.


Spring 3.1 M1: Introducing FeatureSpecification support

UPDATE: The FeatureSpecification functionality described in this blog post was removed in Spring Framework 3.1 M2 in favor of @Enable* annotations. See the 3.1 M2 announcement for more information.


Earlier in this series I touched on how the new @Profile annotation can be used in conjunction with @Configuration classes to take advantage of Spring’s bean definition profiles. Today, we’ll look at an entirely new addition to the code-based configuration landscape in Spring 3.1: FeatureSpecification classes and their related support.


This week in Spring: February 15th, 2011

This last week has seen a record number of... well, records, if nothing else! First, Juergen Hoeller - Spring project lead and all around nice guy - gave a webinar introducing the new features in Spring 3.1 to record attendance numbers. Then, as if that weren't enough, the next day the first milestone of Spring 3.1 was released to record numbers of downloads. That would've been enough. I don't know about you, but I could've stopped right there. Then, over the course of the last week we've seen what I imagine is a record number of new releases from other Spring projects! Finally, yesterday, no doubt in reaction to all this other record activity, we saw the largest record number of people hit the SpringSource blog yet! In summary, Spring 3.1 milestone mania, numerous new projects, and as always a healthy dose of community-awesomeness (go team!)


GORM for MongoDB: New Milestone, Richer Experience

Last year we introduced support for MongoDB in GORM (along with many other GORM implementations) and it has been extremely well received by the community. We have had a ton of feedback, and today we are pleased to announce a new release (Milestone 2) which addresses some of the feedback we have received.

Embedded Document Support

The number one requested feature was nested document support and in this release we have improved that significantly. Now you can embed other domains using the standard embedded mapping in GORM:


Spring Data Document - MongoDB Support 1.0.0.M1 Released

Dear Spring Community,

I am pleased to announce that the very first milestone release of the Spring Data Document 1.0 project with MongoDB support is now available!

The primary goal of the Spring Data project is to make it easier to build Spring-powered applications that use new data access technologies such as non-relational databases, map-reduce frameworks, and cloud based data services.

The MongoDB module provides integration with the MongoDB document database.

Downloads | JavaDocs | Reference Documentation | Changelog


Spring 3.1 M1: Unified Property Management

In the first two posts of this series, I described the bean definition profiles feature, and how it relates to the Environment abstraction new in Spring 3.1 M1. Today we’ll take a look at a second aspect of the Environment – how it helps simplify the concern of configuration property management.

Understanding property sources

Spring’s Environment abstraction provides search operations over a configurable hierarchy of property sources. To explain fully, consider the following:

ApplicationContext ctx = new GenericApplicationContext(); Environment env = ctx.getEnvironment(); boolean containsFoo = env.containsProperty("foo"); System.out.println("Does my environment contain the 'foo' property? " + containsFoo);

Spring 3.1 M1: Introducing @Profile


In my earlier post announcing Spring 3.1 M1, I discussed the new bean definition profiles feature as applied when using Spring <beans/> XML to configure the container. Today we’ll introduce the new @Profile annotation and see how this same feature can be applied when using @Configuration classes instead of XML. Along the way we’ll cover some best practices for designing @Configuration classes.

Recall @Configuration

For those unfamiliar with @Configuration classes, you can think of them as a pure-Java equivalent to Spring <beans/> XML files. We’ve blogged about this featureset before, and the reference documentation covers it well. You may want to revisit those resources if you need an introduction or a refresher.


SpringOne 2GX 2010 Tech Talk: Configuration Enhancements in Spring 3.1

SpringOne 2GX 2010 Tech Talk: Configuration Enhancements in Spring 3.1
release of Spring 3.1 InfoQ SpringOne 2GX 2010 Configuration Enhancements in Spring 3.1 Chris Beams

Also last week Juergen Hoeller gave a webinar on the Spring 3.1 milestone release. In case you can were not able to attend in person, a full recording of the webinar has now been posted so you can get all of the details from the source!

Also don't forget to read Chris's recent blog post about Bean Definition Profiles. This is the first in a short series that will be covering the details of the new release.