Archive for the 3.1 category

Michael Isvy

Transactions, Caching and AOP: understanding proxy usage in Spring

In the Spring framework, many technical features rely on proxy usage. We are going to go in depth on this topic using three examples: Transactions, Caching and Java Configuration. All the code samples shown in this blog entry are available on my github account. Transactions First step: no transaction The Service class below is not Read more…

Michael Isvy

Migrating to Spring 3.1 and Hibernate 4.1

Update to Spring 3.2The application has been updated to Spring 3.2. The new version is available here: Spring 3.2. The old one is still available: Spring 3.1. As part of the Core-Spring course, we have a lab application that we use to show how to integrate Spring and JPA/Hibernate together. We have just upgraded it Read more…

Juergen Hoeller

Spring Framework 3.1 goes GA

It is my pleasure to announce that Spring Framework 3.1 becomes generally available today! This release delivers several key features that make Spring ready for the challenges of 2012 and beyond: * The environment abstraction and the associated bean definition profiles, along with centrally configurable property sources for placeholder resolution. * Java-based application configuration based Read more…

Scott Andrews

Using Cloud Foundry Services with Spring: Part 4 – Spring Profiles

Spring 3.1 adds significant new support for environments. This new Environment API makes it easy to expose properties to an application or conditionally load a fragment of configuration. In an earlier post in this series, Ramnivas showed how Cloud Foundry can automatically connect to a database without manual configuration. When you need more control over Read more…

Thomas Risberg

Using Cloud Foundry Services with Spring: Part 3 – the <cloud> namespace

We saw in the previous blog post Using Cloud Foundry Services with Spring: Part 2 – Auto-reconfiguration that when you deploy a Spring application, your use of data services will be detected, and your application will automatically be re-configured to use the cloud services available to your application. This works great for simple applications and Read more…

Juergen Hoeller

Spring Framework 3.1 RC1 released

It is my pleasure to announce that the first Spring Framework 3.1 release candidate has – finally – been released this week! We have been working on this release for several months, completing our milestone work and recently adding support for Java SE 7 and for Hibernate 4.0 to the feature list. Spring Framework 3.1 Read more…

Sam Brannen

Spring 3.1 M2: Testing with @Configuration Classes and Profiles

As Jürgen Höller mentioned in his post announcing the release of Spring 3.1 M2, the Spring TestContext Framework(*) has been overhauled to provide first-class testing support for @Configuration classes and environment profiles. In this post I'll first walk you through some examples that demonstrate these new testing features. I'll then cover some of the new Read more…

Rossen Stoyanchev

Spring 3.1 M2: Spring MVC Enhancements

This post focuses on what's new for Spring MVC in Spring 3.1 M2. Here are the topics: Code-based equivalent for the MVC namespace. Customizable @MVC processing. Programming model improvements. A brief reminder that the features discussed here are in action at the Greenhouse project. Code-based Configuration For Spring MVC As Chris pointed out in his Read more…

Chris Beams

Spring 3.1 M2: Configuration Enhancements

As Juergen mentioned in his post yesterday, and as I've mentioned in my previous posts on 3.1 M1, one of the major themes of Spring 3.1 is completing our vision for code-based configuration in Spring. We think a modern enterprise Java application should have a choice between Java and XML as first class options for Read more…

Juergen Hoeller

Spring Framework 3.1 M2 released

Spring Framework 3.1 M2 has been released this week, marking the end of the 3.1 milestone phase. We are moving on to the release candidate phase now, preparing for a feature-complete RC1 in July and a GA release in September. 3.1 M2 completes the work on several major themes started in 3.1 M1 back in Read more…