13 Next Stop: Spring 4.0

WHAT YOU WILL LEARN IN THIS CHAPTER:

  • Keeping up with the latest: Java 8 and Java EE7 support
  • Configuring injection with conditional dependency
  • Ordering the elements of autowired collections
  • Repeating annotations
  • Introducing new annotations

It's been more than four years since the last major release of the Spring Framework, which was version 3.0. Versions 3.1 and 3.2 followed up by bringing features such as Java 7 and Java EE6 support into the enterprise world. Now the producers of Spring offer the best of the breed with version 4.0, which offers full support of Java 8 and Java EE7. This chapter covers the new features introduced by the framework as well as the features added for supporting the new versions of Java.

Even though Spring 4.0 is compatible with the latest versions of Java SE and Java EE, it still supports the older versions. Going back to JDK6 update 18 and Java EE6, the framework offers the functionality for former versions. Servlet 2.5 is also supported especially for deployment on Google App Engine, which means that Java EE5 support is also on board. But developers of the framework strongly suggest that you move onto at least Java EE6 so that you can experience better testing integration.

Get Beginning Spring now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.