The Spring Blog

News and Events

This Week in Spring - August 4th, 2015

Welcome to another installment of This Week in Spring! This week I’m in Washington D.C., delivering some cloud-native realtalk at the Agile 2015 conference with my pal Andrew Clay Shafer then it’s off to Denver, CO, again to speak to customers! If you’re in either area, say hi!

We’re fast approaching SpringOne2GX 2015! Things are getting exciting around here as the team delivers more and more amazing bits! The weeks to come, leading into SpringOne2GX, are my favorite time of the year. Watch this space for new releases aplenty!


First Release Candidate of Spring Data Release Train Gosling Available

On behalf of the Spring Data team, I am pleased to announce the availability of the first and final release candidate of Spring Data release train Gosling. The release ships 121 fixes and enhancements, most notably the following ones:

  • Querydsl integration for Spring MVC and Spring Data REST (see the example for details).
  • Improved compatibility with Spring Framework 4.2 and Spring Boot dev tools.
  • Spring Data JPA now exposes a JpaContext to easily obtain an EntityManager per domain type.
  • RepositoryRestConfigurer for less invasive configuration in Spring Data REST.
  • Spring Data Redis uses Lettuce fork maintained by Mark Paluch.
  • Support for ReadPreference in Spring Data MongoDB aggregations.
  • Support for range facets in Spring Data Solr.
  • Dependency upgrades to Spring Framework 4.1.7, Guava 18 and Jackson 2.6.

Spring for Apache Hadoop 2.3 Milestone 1 released

We are pleased to announce the Spring for Apache Hadoop 2.3 M1 milestone release.

The most important enhancements in the Spring for Apache Hadoop 2.3 M1 version:

  • Add Hadoop 2.7.1 as the default release
  • Add support for HDP 2.3 and CDH 5.4.4
  • Bug fixes: Fix for append reopen may fail SHDP-510
  • Better boot support: Support boot config props metadata SHDP-452
  • Add support for Hive 1.x and HiveServer2

See the release changelog for details.

To be able to use Hive 1.x which dropped support for HiveServer1 and the corresponding Thrift client we had to rewrite the Hive support in Spring for Apache Hadoop. We now support HiveServer2 using the JDBC client and for the most common uses you only need to change the client configuration to use a hiveDataSource. Here is an example:


Spring Statemachine 1.0.0.M3 Released

We’re pleased to announce a third milestone release of Spring Statemachine 1.0.0.M3.

A lot has happened since a previous milestone and getting here took a bit more time we originally estimated. Now that we’re here, let’s crack it and see what new features we have in this release.

Beyond usual bug fixes here is a list of main new features:

  • Distributed state machine
  • Persisting state machine context
  • Relax use of enums as states and events
  • Programmatic instantiation of state machines
  • New recipe modules
  • New samples (persist, zookeeper, web)

Spring Session 1.0.2 Released

I’m pleased to announce the release of Spring Session 1.0.2.RELEASE. You can find the release in Maven Central.

This release fixes 20+ tickets. The general goal was to close out bugs before we start working on Spring Session 1.1. You can find the highlights below:


The highlights of Spring Session 1.0.2 are available below:

  • ERROR dispatch can cause two sessions to be created (#229)
  • CookieHttpSessionStrategy can write the same Session id twice (#251)
  • Updates to previous HttpSession references are not reflected after changeSessionId() invoked (#227)
  • Official support for Spring Framework 4.2 (#120)
  • Our samples remove Embedded Redis (#248)
  • Documentation improvements and fixes

Coming up in 2016: Spring Framework 4.3 & 5.0

As a follow-up to the Spring Framework 4.2 GA announcement and also to my earlier post on Spring Framework 5 system requirements, I’d like to take the opportunity to summarize our core framework plans for next year:

Spring Framework 4.3

First up will be Spring Framework 4.3 in Q2 2016, as a final feature release in the 4.x series.
As mentioned, this will still be designed for the general Spring 4 system requirements (Java 6+, Servlet 2.5+) and getting prepared for an extended 4.3.x support life until 2019, in particular for users on JDK 6 and 7 but also for applications deployed to older app servers on JDK 8.


Spring Framework 4.2 goes GA

Dear Spring community,

It’s my pleasure to announce that Spring Framework 4.2 is now generally available from as well as Maven Central! This is a feature release in the 4.x line, compatible with Java 6 and 7 as well as Java 8, with a focus on core refinements and modern web capabilities:

  • Annotation detection on Java 8 default methods (e.g. @Bean)
  • Annotation-based application events (@EventListener)
  • First-class support for annotation attribute aliases (@AliasFor)
  • Full nested path processing for direct field binding
  • Data binding and conversion for JSR-354 Money & Currency
  • Integration with Hibernate ORM 5.0 (natively and via JPA)
  • Standards-based bean scripting via JSR-223 (JRuby, JavaScript)
  • JSR-223 based web views (with a focus on JavaScript on Nashorn)
  • Rich support for CORS and declarative HTTP caching
  • First-class support for HTTP Streaming and Server-Sent Events
  • CompletableFuture for handler methods and @Async methods
  • Support for Jackson’s @JsonView on STOMP endpoint methods
  • A STOMP client for use over TCP and WebSocket channels
  • MockMvc HtmlUnit integration for easy local testing of web pages
  • Integration tests can alternatively be executed with JUnit rules
  • And, as always, many further refinements in the details.

Spring Cloud Connectors 1.2.0 released

I’m pleased to announce the availability of Spring Cloud Connectors 1.2.0.

Applications that use Spring Cloud Connectors, and libraries that extend the core Connectors libraries, should be re-compiled against version 1.2.0. There were no backward-incompatible API changes between version 1.1.1 and 1.2.0, but some internal implementation changes prevent 1.2.0 from being a drop-in replacement for 1.1.1 without re-compiling.

Here’s an overview of what’s new in 1.2.0:

Additional Databases Supported

The Cloud Foundry Connector and Spring Connector now support IBM DB2 and Microsoft SQL Server relational databases.


This Week in Spring - July 28, 2015

Welcome to another installment of This Week in Spring! We’ve got a lot to cover so let’s get to it!


Spring XD 1.2.1 Released

On behalf of the Spring XD team, I am very pleased to announce the general availability of Spring XD 1.2.1!

This release includes bug fixes and some small enhancements:

  • Support for registering custom Kryo Serializers
  • Configuration options to fine tune Kryo performance
  • Update several dependencies to latest versions - Spring Integration, Boot, reactor, Groovy
  • Add jars for Avro and Snappy compression to Sqoop job submission
  • Fix admin UI access when security is enabled
  • Improved pagination for containers and jobs