Chapter 5. Time Travelling with Spring

Spring 4.0 is the Java 8-enabled latest release of the Spring Framework. In this chapter, we'll discover the major changes in the Spring 4.x release and the four important features of the Spring 4 framework. We will cover the following topics in depth:

  • @RestController
  • AsyncRestTemplate
  • Async tasks
  • Caching

Discovering the new Spring release

This section deals with the new features and enhancements in Spring Framework 4.0. The following are the features:

  • Spring 4 supports Java 8 features such as Java lambda expressions and java.time. Spring 4 supports JDK 6 as the minimum.
  • All deprecated packages/methods are removed.
  • Java Enterprise Edition 6 or 7 are the base of Spring 4, which is based on JPA 2 and Servlet 3.0.
  • Bean ...

Get Mockito for 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.