English French German Italian Portuguese Russian Spanish


  • Java Training

    javaInterSource offers live instructor-led courses on all important Java-related technologies, including Apache Struts, Enterprise Java Beans (EJB), J2SE Desktop Java Enterprise Edition (Java EE), Java Fundamentals, Java Web Services, JavaServer Faces, JBoss, Java Server Pages (JSP), and Spring.

    Please refer to our detailed course outlines below.

  • About Java

    Java is a programming language originally developed by James Gosling at Sun Microsystems and released in 1995 as a core component of Sun Microsystems' Java platform. The language derives much of its syntax from C and C++ but has a simpler object model and fewer low-level facilities. Java applications are typically compiled to bytecode (class file) that can run on any Java Virtual Machine (JVM) regardless of computer architecture

    Java is general-purpose, concurrent, class-based, and object-oriented, and is specifically designed to have as few implementation dependencies as possible. It is intended to let application developers "write once, run anywhere". Java is considered by many as one of the most influential programming languages of the 20th century, and widely used from application software to web application.

    Read More

  • Course Details Java

    Classes are offered at client sites, at our Geneva training center, and via a live web conference. For detailed course outlines and scheduled classes, please see below.

    To book training, navigate to the course you need, then:

    • For scheduled online classes, register from the choices indicated.
    • If you need an alternative date, time or location, or if you want a live classroom course, click on “request an offer for this course,” to complete the form.

Developing RESTful Services with Spring

 PDF PrintEmail

Course duration

  • 5 Days

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.

  • Learn to understand the scope, purpose, and architecture of Spring.
  • Learn to use Spring's bean factories and application contexts to declare application components, rather than hard-coding their states and lifecycles.
  • Learn to use dependency injection to further control object relationships from outside the Java code base.
  • Learn to use annotations to take advantage of Spring post-processors for automated bean instantiation and wiring.
  • Learn to build web applications and RESTful services as a Spring DispatcherServlet and associated application context.
  • Learn to use Spring MVC annotations to develop map request URLs, methods, content types, and parameters to Java methods, and to bind request data to method parameters.
  • Learn to validate input via HTTP requests, and use exception handlers to produce appropriate HTTP error responses.
  • Learn to build REST clients using Spring's "REST template".
  • Learn to connect REST controllers to persistent stores using Spring's DAO and ORM modules.
  • Learn to integrate JPA entities and DAOs into Spring applications.
  • Learn to declare and enforce transaction requirements using Spring.
  • Learn to use the Spring testing framework for tests of core components, REST controllers, and persistence components.
  • Java programming.
  • Basic knowledge of XML.
  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 www.intersource.ch.