Learning Patterns Your Source for Quality Technology Courseware

Introduction to Spring 4, Spring MVC, and Spring REST

Over the years, Spring has added many new capabilities, in line with the increasing capabilities of the Java platform. As well as being current with Spring 4, this course introduces techniques for using these powerful capabilities. It includes complete coverage of the three main configuration styles: Java-based (@Configuration), annotation-based (@Component), and the traditional XML-based configuration that may still play an important role in existing and new projects. It also provides guidelines for when and how to use each one.

The course starts with in-depth coverage on using the powerful capabilities of Spring’s Core module to reduce coupling and increase the flexibility, ease of maintenance, and testing of your applications. It goes on to cover many of the most important capabilities of Spring, including integrating persistence layers (e.g. Hibernate/JPA) with Spring, using Spring’s powerful Aspect Oriented Programming (AOP) to program cross-cutting concerns in a safe and maintainable way, and using Spring’s declarative transaction capabilities.

The course includes integration of Spring with Java EE Web applications, and an introduction to Spring MVC. Spring MVC utilizes a Model-View-Controller pattern for building Web applications, and the intoduction covers the basics of Spring MVC, and how it supports organizing your Web applications in a highly structured, loosely coupled manner. This includes an introduction to REST (Representational state transfer), and how to use Spring MVC to build RESTful resources and invoke them from Ajax-based front ends.

This course is hands on with labs to reinforce all the important concepts. It will enable you to build working Spring applications and give you an understanding of the important concepts and technology in a very short time.

Course Objectives:

  • Understand the core principles of Spring, and of Dependency Injection (DI) / Inversion of Control
  • Use the Spring Core module and DI to configure and wire application objects (beans) together
  • Know the different types of metadata (XML, annotations/@Component, and Java Configuration/@Configuration), and how and when to use them
  • Understand and use the complete capabilities of the Core module, such as lifecycle events, bean scopes, and the Spring API
  • Work with the ORM (Object-Relational Mapping) module to integrate Spring with technologies such as Hibernate or JPA.
  • Understand and use Spring’s powerful AOP capabilities for programming cross-cutting concerns across multiple points in an application
  • Learn safe and maintainable techniques for programming with AOP
  • Understand and use Spring’s transaction support, including the easy-to-use Java annotation support, as well as the tx/aop XML configuration elements
  • Integrate Spring with Java EE Web applications
  • Build Web applications with Spring MVC, including configuration using Java config and Servlet 3 capabilities
  • Understand REST, and use Spring MVC to build RESTful services
  • Use Ajax-based front ends with Spring MVC / Spring REST

Course Outline: