Introduction to the Spring 5 Framework

Introduction to the Spring 5 Framework

data-analyst-science near Pune
Recorded content
Of Total 10 Hrs.
data-analyst-science near Pune
Duration
3 Months (50 hours)
data-analyst-science near Pune
LIVE sessions
4 Workshops
data-analyst-science near Pune
Hands-On Learning
With Practice Modules
data-analyst-science near Pune
Certificate
With License

React Components

Skillmetrix's Spring 5 training teaches attendees how to build Spring applications and RESTful services using the Spring framework.

Objective

  • 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, and Java 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
  • Use Spring Boot to simplify dependency management and configuration
  • Work with the ORM (Object-Relational Mapping) module to integrate Spring with technologies such as Hibernate or JPA.
  • Use Spring Data to automatically generate JPA-based repository classes
  • 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 and use the core capabilities of Spring’s Reactive programming support
  • Understand REST, and use Spring MVC to build RESTful services
  • Use Ajax-based front ends with Spring MVC / Spring REST

Outline

  • • Overview of Spring Technology
  • o The Motivation for Spring, Spring Architecture
  • o The Spring Framework
  • • Spring Introduction
  • o Declaring and Managing Beans
  • o ApplicationContexts
  • o Using @ Component/@ Named
  • • Dependencies and Dependency Injection (DI)
  • o Examining Dependencies
  • o Dependency Inversion / Dependency Injection (DI)
  • o XML Configuration of DI
  • o Injection with @ Autowire
  • • Java Based Configuration (@ Configuration)
  • o Overview, @ Configuration, @ Bean
  • o Dependency Injection
  • o Resolving Dependencies
  • • Integrating Configuration Types
  • o XML vs. @ Component
  • o @ Configuration Pros and Cons
  • o Choosing a Configuration Style
  • o Integrating Configuration Styles
  • • Bean Scope and Lifecycle
  • o Singleton, Prototype, and Other Scopes
  • o Configuring Scope
  • o Bean Lifecycle / Callbacks
  • • Externalizing Properties
  • o Properties Files
  • o @ PropertySource, property-placeholder
  • o Using @ Value
  • o SpEL
  • • Profiles
  • o Overview and Configuration
  • o Activating Profiles

  • • maven and Spring
  • • Spring Boot Structure
  • • Spring POMs with Boot Parents
  • • Spring Boot Starters
  • • Other Capabilities

  • • Testing and JUnit Overview
  • o Writing Tests - Test Classes, asserts, Naming Conventions
  • o Running Tests - IDE, maven, ...
  • o Test Fixtures - setup and teardown
  • • Spring TestContext Framework
  • o Overview
  • o Configuration
  • o Running Tests

  • • Overview of Spring database support
  • • Configuring a DataSource
  • • Using Spring with Hibernate
  • o High-Level Hibernate Overview
  • o SessionFactory configuration, LocalSessionFactoryBean
  • o Contextual Sessions and Spring Integration
  • • Using Spring with JPA
  • o Managing the EntityManager (EM)
  • o LocalContainerEntityManagerFactoryBean and Container-managed EMs
  • o JEE and JNDI Lookup of the EM
  • o Configuration and Vendor Adaptors
  • o Creating a JPA Repository/DAO Bean - @ PersistenceUnit, @ PersistenceContext
  • • Spring Data Introduction
  • o Overview and Architecture
  • o Configuring Spring Data
  • o Repositories and JPA Repositories
  • o Using CrudRepository
  • • Spring Data Querying
  • o Naming Conventions for Querying
  • o Creating more Complex Queries
  • o Query Configuration

  • • Overview
  • • Declarative TX Management (REQUIRED, etc.)
  • • TX Scope and Propagation
  • • XML Configuration of Transactions
  • o Specifying Advice, TX Attributes, and Methods
  • o Linking Advice with Pointcuts
  • o Benefits of XML Configuration of TX Behavior

  • • Java EE Web App Integration
  • • ContextLoaderListener and WebApplicationContext
  • • Web MVC Overview
  • • Spring MVC Basics
  • o Configuration and the DispatcherServlet
  • o @ Controller, @ RequestMapping (Handlers)
  • o @ RequestParam and Parameter Binding
  • o View Resolvers
  • o Controller Details - @ RequestParam, @ PathVariable
  • o Model Data and @ ModelAttribute

  • • @ ModelAttribute and Reference Data
  • • Forms and Binding, Spring Form Tags
  • • Sessions and @ SessionAttributes
  • • Validation / JSR-303

  • • REST Overview, URI Templates
  • • REST and Spring MVC
  • • Spring support for REST
  • • @ RequestMapping/@ PathVariable, @ equestBody, @ ResponseBody
  • • URI Templates and @ PathVariable
  • • Controllers with @ RestController
  • • Generating JSON
  • o JSON Overview
  • o JSON Representations for Resources
  • o Message Converters
  • • Generating XML
  • o JAXB and Jackson Message Converters for XML
  • o JAXB / @ XmlRootElement
  • • Content Negotiation

  • • Generating JSON
  • o JSON Overview
  • o JSON Representations for Resources
  • o Message Converters
  • • Generating XML
  • o JAXB and Jackson Message Converters for XML
  • o JAXB / @ XmlRootElement
  • • Content Negotiation

  • • Client Requirements and Spring's RestTemplate
  • • getForObject() / getForEntity()
  • • Other RestTemplate Methods
  • • Accessing Headers / exchange()

  • • GET: Read
  • • POST: Create
  • • PUT: Update
  • • DELETE: Delete
  • • Programming on server side, and client side (with RestTemplate)

  • • Updates to Spring Core
  • • WebFlux / Reactive Web Framework

  • • Collections - lists, sets, etc.
  • • Additional Capabilities
  • o Factory Classes and Factory Methods
  • o Definition Inheritance (Parent Beans)
  • o AutoWiring with XML
  • o Inner Beans, Compound Names

Training Materials

All attendees receive comprehensive courseware covering all subjects in the course.

Software Requirements

• JDK 8 or later (required for Spring 5)

• IntelliJ IDEA, Eclipse with Spring Tools, or another IDE of your choice

• Tomcat 8 or later (or another servlet container, upon request)

• Related lab files that Skillmetrix provides

• Other free software - please contact us if you have purchased this class.

Why Online Bootcamps

Develop skills for real career growth

Cutting-edge curriculum designed in guidance with industry and academia to develop job-ready skills

Learn by working on real-world problems

Capstone projects involving real world data sets with virtual labs for hands-on learning

Learn from experts active in their field, not out-of-touch trainers

Leading practitioners who bring current best practices and case studies to sessions that fit into your work schedule.

Structured guidance ensuring learning never stops

24x7 Learning support from mentors and a community of like-minded peers to resolve any conceptual doubts