The Spring Blog

News and Events

Adding an Atom view to an application using Spring's REST support

In Spring 3.0, Spring MVC will be augmented with REST support. This post describes how to use the REST support to implement an AtomView on top of a simple sample application. Follow this step-by-step process to see how easy it is to implement an AtomView on top of a simple application with the new REST support in Spring MVC.

Step 1: Download the application skeleton

Attached to this blog entry, near the bottom, you will find a simple download that holds a skeleton for a web application. Inside, you will find all Spring 3.0 binaries needed for this application, plus a few extras needed for the Atom functionality. The Spring binaries are based on a nightly build and might be replaced with the final builds once Spring 3.0 has gone final.


Grails 1.1 Released

Hot on the heels of the Groovy 1.6 release, we are pleased to announce that Grails 1.1 final is out and available from the Grails site. There are numerous improvements that are listed in detail in the release notes. However, some of the key ones are:

Standalone GORM: It is now possible to use Grails’ ORM layer (built on Hibernate) outside of Grails. There is an example that uses GORM inside a Spring MVC application in the samples/petclinic-mvc directory of the distribution. The example configures a GORM enabled SessionFactory using Spring as follows:


REST in Spring 3: @MVC

In the last couple of years, REST has emerged as a compelling alternative to SOAP/WSDL/WS-*-based distributed architectures. So when we started to plan our work on the next major release of Spring - version 3.0, it was quite clear to us that we had to focus on making the development of ‘RESTful’ Web services and applications easier. Now, what is and isn’t ‘RESTful’ could be the topic of a whole new post all together; in this post I’ll take a more practical approach, and focus on the features that we added to the @Controller model of Spring MVC.


Spring BlazeDS Integration 1.0.0.M2 Released

Dear Spring Community,

I’m pleased to announce that the second public development milestone of Spring BlazeDS Integration, the newest of the open source Spring projects, is now available.

Download | Reference Documentation | JavaDocs | Changelog

The main features of note that have been added in this release are integration with Spring Security, and simplified XML-namespace-based configuration.  The namespace support results in significantly simpler Spring configuration files than using the full <bean> syntax, especially when using the new security features.


OSGi Development Tools in STS 2.0

Yesterday we published a final release candidate build of the upcoming SpringSource Tool Suite version 2.0. The RC build is available for Windows, Mac OS X and Linux from the STS product page.

STS 2.0 is equipped with new productivity tools for developing Spring applications, like Quick Fixes, as-you-type validation and correction, project and bean creation wizards as well as a Visual Spring Configuration Editor and more. Stay tuned for more information on these new features.

Additionally STS 2.0 comes with tools for OSGi-based application development that experienced as well as new adopters of OSGi might find interesting. I’d like to use this blog to briefly introduce those features.


Groovy 1.6 released under the SpringSource umbrella

I’m very pleased to report here the very recent release of Groovy 1.6, which happened under the SpringSource umbrella, since the acquisition of G2One by SpringSource.

Groovy dynamic language for the JVMGroovy 1.6 is a very important milestone for the project, bringing tremendous performance improvements making Groovy the fastest dynamic language for the JVM, as well as several new powerful features adding more weapons to your dynamic language arsenal.

In particular, beyond the usual bug fixes and minor enhancements, let me mention the following novelties:


Building Spring 3

UPDATE - Feb 21 ’12: Spring Framework has moved to GitHub, and for 3.2.x development has moved from Ant to Gradle. Take a look at the building from source section of the README there for (greatly simplified!) instructions.


As Juergen announced last week, Spring 3.0 Milestone 2 is now available. In this post, I’ll show you in six steps how to download and build the latest Spring 3 sources and get a development environment up and running in Eclipse.

We’ll wrap up by discussing the best ways to follow Spring 3 development, how to file bugs and improvement requests, and considerations for compiling against locally-built Spring 3 binaries in a Maven environment.


Spring Framework 3.0 M2 released

If you aren’t following the SpringSource blog you may have missed it, but last week Juergen Hoeller announced the availability of the second milestone for Spring 3.0. Juergen’s blog post covers all of the details about the milestone including the new RestTemplate, early JPA 2.0 support, more Java 5 style API updates and other improvements.

You can always get the latest milestones, release candidates and full releases for Spring from the download center.


Spring Integration on dm Server


In this blog post I will show you how to create a loosely coupled and scalable application with Spring Integration and dm Server. The added benefit of using OSGi will allow us to change the behavior of the application at runtime and of course we’re going to have some fun with that too. First I will quickly highlight the reasons for designing an application for concurrent use, then I will describe different strategies of integrating OSGi bundles with Messaging. Along the way you will get a glimpse of our tooling and some of the dm Server features. You should be able to do this yourself, if you have downloaded and installed the latest SpringSource Tool Suite and dm Server. You don’t need the sample code to follow the story, but it will be available in the Spring Integration sandbox if you’re interested.


Spring Framework 3.0 M2 released

We are pleased to announce that the second Spring 3.0 milestone is finally available (download page).
This release comes with a wealth of revisions and new features:

Further Java 5 style API updates: consistent use of generic Collections and Maps, consistent use of generified FactoryBeans, and also consistent resolution of bridge methods in the Spring AOP API. Generified ApplicationListeners automatically receive specific event types only. All callback interfaces such as TransactionCallback and HibernateCallback declare a generic result value now. Overall, the Spring core codebase is now freshly revised and optimized for Java 5.