Introduction to Spring 5, Spring Boot, and Spring REST

The Introduction to Spring 5, Spring Boot, and Spring REST training class starts with in-depth coverage 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 easing configuration with Spring Boot, integrating JPA persistence layers with Spring and Spring Data, and using Spring’s declarative transaction capabilities.

The course includes a solid introduction to Spring REST, and coverage of building RESTful resources. It also covers many of the details of Spring Boot, including how to create Boot-based POMs (maven) for simplified dependency management, customizing Boot behavior, and understanding/managing Boot’s auto-configuration.

Location

Public Classes: Delivered live online via WebEx and guaranteed to run . Join from anywhere!

Private Classes: Delivered at your offices , or any other location of your choice.

Goals
  1. Understand the core principles of Spring, and of Dependency Injection (DI) / Inversion of Control
  2. Use the Spring Core module and DI to configure and wire application objects (beans) together
  3. Know the different types of metadata (XML, annotations/@Component, and Java Configuration/@Configuration), and how and when to use them
  4. Understand and use the complete capabilities of the Core module, such as lifecycle events, bean scopes, and the Spring API
  5. Use Spring Boot to simplify dependency management and configuration
  6. Understand and use Boot’s auto-configuration
  7. Customize Boot’s behavior with properties and in other ways
  8. Work with the ORM (Object-Relational Mapping) module to integrate Spring with technologies such as JPA
  9. Use Spring Data to automatically generate JPA-based repository classes
  10. Understand and use Spring’s transaction support, including the easy-to-use Java annotation support
  11. Understand REST, and use Spring REST to build RESTful services
  12. Use Ajax-based front ends with Spring REST
  13. Use RestTemplate to create Java REST clients
Outline
  1. Introduction to Spring
    1. Overview of Spring Technology
      1. Motivation for Spring, Spring Architecture
      2. The Spring Framework
      3. maven and Spring
    2. Spring Introduction
      1. Declaring and Managing Beans
      2. ApplicationContexts - The Spring Container
      3. XML and &Component/&Named Config
    3. Dependencies and Dependency Injection (DI)
      1. Examining Dependencies
      2. Dependency Inversion / Dependency Injection (DI)
      3. DI in Spring - XML and &Autowired
  2. Configuration in Depth
    1. Java Based Configuration (&Configuration)
      1. Overview, &Configuration, &Bean
      2. Dependency Injection
      3. Resolving Dependencies
    2. Integrating Configuration Types
      1. XML and &Component Pros/Cons
      2. &Configuration Pros/Cons
      3. Choosing a Configuration Style
      4. Integrating with &Import and <import>
    3. Bean Scope and Lifecycle
      1. Singleton, Prototype, and Other Scopes
      2. Configuring Scope
      3. Bean Lifecycle / Callbacks
    4. Externalizing Properties
      1. Properties Files
      2. &PropertySource, property-placeholder
      3. Using &Value
      4. SpEL
    5. Profiles
      1. Overview and Configuration
      2. Activating Profiles
  3. Spring Boot Overview
    1. Spring Boot Structure
    2. Spring POMs with Boot Parents
    3. Spring Boot Starters
    4. Other Capabilities
  4. Spring Testing
    1. Testing and JUnit Overview
      1. Writing Tests - Test Classes, asserts, Naming Conventions
      2. Running Tests - IDE, maven, ...
      3. Test Fixtures - setup and teardown
    2. Spring TestContext Framework
      1. Overview
      2. Configuration
      3. Running Tests
  5. Spring and Spring Data with JPA
    1. Overview of Spring database support
    2. Configuring a DataSource
    3. Using Spring with JPA
      1. Managing the EntityManager (EM)
      2. LocalContainerEntityManagerFactoryBean and Container-managed EMs
      3. JEE and JNDI Lookup of the EM
      4. Configuration and Vendor Adaptors
      5. Creating a JPA Repository/DAO Bean - &PersistenceUnit, &PersistenceContext
    4. Spring Data Overview
      1. Overview and Architecture
      2. Configuring Spring Data
      3. Repositories and JPA Repositories
      4. Using CrudRepository
    5. Using Spring Data
      1. Naming Conventions for Querying
      2. Creating more Complex Queries
      3. Query Configuration
  6. Spring Transaction (TX) Management
    1. Overview
    2. Declarative TX Management (REQUIRED, etc.)
    3. TX Scope and Propagation
    4. Pointcut-based Configuration of Transactions
  7. RESTful Services with Spring
    1. REST Overview and Principles
    2. REST and Spring MVC
      1. Spring support for REST
      2. &RequestMapping/&PathVariable, &RequestBody, &ResponseBody
      3. URI Templates and &PathVariable
      4. Controllers with &RestController
    3. Requests and Responses
    4. Ajax Overview
  8. Working with JSON and XML
    1. Generating JSON
      1. JSON Overview
      2. JSON Representations for Resources
      3. Message Converters
    2. Generating XML
      1. JAXB and Jackson Message Converters for XML
      2. JAXB / &XmlRootElement
    3. Content Negotiation
  9. Java Clients for RESTful Services
    1. Client Requirements and Spring's RestTemplate
    2. getForObject() / getForEntity()
    3. Other RestTemplate Methods
    4. Accessing Headers / exchange()
  10. Common REST Patterns
    1. GET: Read
    2. POST: Create
    3. PUT: Update
    4. DELETE: Delete
    5. Programming on server side, and client side (with RestTemplate)
  11. Boot and its Configuration/Customization
    1. SpringBootApplication / CommandLineRunner / ApplicationRunner
    2. Working with Properties - YAML and .properties
    3. Logging and its Configuration
    4. Spring TestContext Framework
    5. Auto-configuration and Customization
  12. Boot Database Support
    1. Overview and JDBC Support
    2. JPA Support
  13. Spring Boot Web/Security
    1. Spring Boot Web
    2. Spring Boot Security
    3. Spring Boot Data REST
  14. Additional Spring 5 Features
    1. Updates to Spring Core
    2. WebFlux / Reactive Web Framework
Class Materials

Each student in our Live Online and our Onsite classes receives a comprehensive set of materials, including course notes and all the class examples.

Class Prerequisites

Experience in the following is required for this Spring class:

  • Working knowledge of Java programming, including use of inheritance, interfaces, and exceptions.

Training for Yourself

$2,875.00 or 5 vouchers

Upcoming Live Online Classes

  • See More Classes

Please select a class.

Training for your Team

Length: 5 Days
  • Private Class for your Team
  • Online or On-location
  • Customizable
  • Expert Instructors

What people say about our training

The class helped in learning to apply Excel 2013 to everyday tasks related to my job.
Greg Hulbert
Colorado State University
Webucator covered an amazing amount of ground in two days. I feel that I learned the equivalent of a college semester.
Shawn Sullivan
American Land Title Association
Comprehensive material and great instructor. Highly recommend.
James Peterson
Gulfstream Aerospace
The flexibility, kindness, and knowledge of the instructor were top notch.
Rob LaMora
Knolls Atomic Power Lab (Lockheed Martin)

No cancelation for low enrollment

Certified Microsoft Partner

Registered Education Provider (R.E.P.)

GSA schedule pricing

63,830

Students who have taken Instructor-led Training

11,921

Organizations who trust Webucator for their Instructor-led training needs

100%

Satisfaction guarantee and retake option

9.30

Students rated our trainers 9.30 out of 10 based on 29,938 reviews

Contact Us or call 1-877-932-8228