Developing RESTful Services with Spring


Request an offer for classroom delivery of this course

Online Registration and Course delivery

Course duration

Course Outline

This Developing RESTful Services with Spring training class enables the experienced Java developer to use the Spring application framework to manage objects in a lightweight "IoC" (inversion-of-control) container; to create simple and complex RESTful web services; to manage persistent objects using Spring's support for DAOs and transaction control; and to take advantage of the Spring testing framework for their RESTful services. Spring is a far-reaching framework that aims to facilitate all sorts of Java development, including every level of multi-tier distributed systems. Here we focus on the Core and Web/MVC modules, with a slightly lighter touch on persistence through DAO and ORM modules, all to the end of building RESTful web services. We also cover Spring's support for building REST clients.

  1. Overview of Spring
    1. Java EE: The Good, The Bad, and the Ugly
    2. Enter the Framework
    3. Spring Value Proposition
    4. The Spring Container
    5. Web Applications
    6. Persistence Support
    7. Aspect-Oriented Programming
    8. The Java EE Module(s)
    9. Integrating Other Frameworks
  2. The Container
    1. JavaBeans, Reconsidered
    2. The Factory Pattern
    3. Inversion of Control
    4. XML View: Declaring Beans
    5. Java View: Using Beans
    6. Singletons and Prototypes
  3. Instantiation and Configuration
    1. Configuring Through Properties
    2. Configuration Namespaces
    3. The p: Notation
    4. Bean (Configuration) Inheritance
    5. Configuring Through Constructors
    6. Bean Post-Processors
    7. Lifecycle Hooks
    8. Integrating Existing Factory Code
    9. Awareness Interfaces
  4. Dependency Injection
    1. Complex Systems
    2. Assembling Object Graphs
    3. Dependency Injection
    4. Single and Multiple Relationships
    5. The Utility Schema
    6. Bean Aliases
    7. Inner Beans
    8. Autowiring
    9. @Component, @Service, & Company
    10. @Autowired Properties
    11. Best Practices with Spring Annotations
  5. Assembling Object Models
    1. Collections and Maps
    2. Support for Generics
    3. The Spring Utility Schema (util:)
    4. Autowiring to Multiple Beans
    5. Order of Instantiation
    6. Bean Factory vsApplication Context
  6. REST Basics
    1. The REST Vision
    2. Use of HTTP
    3. Use of URIs
    4. Use of Content Types
    5. CRUD Operations and Business Operations
    6. HATEOAS and the Richardson Maturity Model
  7. The Web Module
    1. Servlets and JSPs: What's Missing
    2. The MVC Pattern
    3. The Front Controller Pattern
    4. DispatcherServlet
    5. A Request/Response Cycle
    6. The Strategy Pattern
    7. Web Application Contexts
    8. Annotation-Based Handler Mappings
    9. @Controller and @RequestMapping
    10. "Creating" a Model
    11. Entities, Not Views
  8. Handling Requests
    1. Matching URLs
    2. Matching Methods
    3. Matching Content Types
    4. Path Variables
    5. Request Parameters
    6. Headers and Cookies
    7. Injectable Method Parameters
    8. Command Objects vsEntities
    9. @RequestBody and @ResponseBody
    10. HttpEntity<T> and ResponseEntity<T>
  9. Producing Responses
    1. Return Types
    2. Default Content Types
    3. Default Status Codes
    4. The produces Element
    5. Binary Content
  10. Entities and Complex Content
    1. Converters and Formatters
    2. HttpMessageConverter
    3. Using <mvc:annotation-driven />
    4. Built-In HttpMessageConverters
    5. Working with XML
    6. Working with JSON
    7. Custom Message Converters
  11. Validation
    1. Validation in Spring MVC
    2. JSR 303, a/k/a Bean Validation
    3. Configuration
    4. Support for @Valid
    5. HandlerExceptionResolver
    6. @ExceptionHandler
    7. Message Sources and Localization
    8. Resolving Error Codes
  12. REST Clients
    1. RestTemplate
    2. Sending HTTP Requests
    3. Translating Entities
    4. Reading Responses
    5. Error Handlers
  13. Working with JPA
    1. Object/Relational Mapping
    2. The Java Persistence API
    3. Hibernate
    4. @Entity and Other JPA Annotations
    5. Entity Managers and Factories
    6. The Persistence Unit
    7. JpaDaoSupport and JpaTemplate
    8. Configuration Issues
  14. Transactions
    1. Transaction Managers
    2. Transaction Advice
    3. AOP vsAnnotations
    4. JDBC Transaction Manager
    5. JPA Transaction Manager
    6. Entity States
    7. Extended Persistence Contexts
  15. The Spring Testing Framework
    1. Testability of Spring Applications
    2. Dependency Injection Of, By, and For Tests
    3. Mocking
    4. The Spring Test Runner
    5. The Test Context
    6. @ContextConfiguration
    7. Profiles
    8. Mocking Spring MVC
    9. Testing Persistence Components

InterSource Geneva, a premier Information Technology training firm, offers over 400 different courses on server, database and programming technologies, as well as end-user classes for the most popular office, graphics and design applications. We serve clients in Switzerland (Geneva, Lausanne, Bern, Basel, Zurich) and throughout Europe (France, Germany, Austria, Finland, Sweden, England, Netherlands, Spain, etc.).

InterSource offers custom, private courses at client sites, standard public courses in our Geneva classroom, and online training via live Web conference. Training is offered in English and many other languages (Francais, Deutsch, Espanol, Italiano.)

For an overall view of our offerings, please visit us at