Curso Introduction to the Spring 5 Framework

  • RPA | IA | AGI | ASI | ANI | IoT | PYTHON | DEEP LEARNING

Curso Introduction to the Spring 5 Framework

32 horas
Visão Geral

O Curso Introduction to the Spring 5 Framework, ensina os participantes como construir aplicativos Spring e serviços RESTful usando a estrutura Spring.

Objetivo

Após realizar este Curso Introduction to the Spring 5 Framework você será capaz de:

  • Compreenda os princípios básicos do Spring e da Injeção de Dependência (DI)/Inversão de Controle
  • Use o módulo Spring Core e DI para configurar e conectar objetos de aplicativo (beans)
  • Conhecer os diferentes tipos de metadados (XML, annotations/@Component e Java Configuration/@Configuration) e como e quando usá-los
  • Compreender e usar os recursos completos do módulo Core, como eventos de ciclo de vida, escopos de bean e API Spring
  • Use Spring Boot para simplificar o gerenciamento e configuração de dependências
  • Trabalhe com o módulo ORM (Object-Relational Mapping) para integrar Spring com tecnologias como Hibernate ou JPA.
  • Use Spring Data para gerar automaticamente classes de repositório baseadas em JPA
  • Compreenda e use o suporte a transações do Spring, incluindo o suporte à anotação Java fácil de usar, bem como os elementos de configuração XML tx/aop
  • Integre Spring com aplicativos Web Java EE
  • Crie aplicativos Web com Spring MVC, incluindo configuração usando Java config e recursos de Servlet 3
  • Compreender e usar os principais recursos do suporte à programação reativa do Spring
  • Entenda REST e use Spring MVC para construir serviços RESTful
  • Use front-ends baseados em Ajax com Spring MVC/Spring REST
Materiais
Inglês/Português/Lab Prático
Conteúdo Programatico

Introduction to Spring

  1. Overview of Spring Technology
    1. The Motivation for Spring, Spring Architecture
    2. The Spring Framework
  2. Spring Introduction
    1. Declaring and Managing Beans
    2. ApplicationContexts
    3. Using @Component/@Named
  3. Dependencies and Dependency Injection (DI)
    1. Examining Dependencies
    2. Dependency Inversion / Dependency Injection (DI)
    3. XML Configuration of DI
    4. Injection with @Autowire

Configuration in Depth

  1. Java Based Configuration (@Configuration)
    1. Overview, @Configuration, @Bean
    2. Dependency Injection
    3. Resolving Dependencies
  2. Integrating Configuration Types
    1. XML vs. @Component
    2. @Configuration Pros and Cons
    3. Choosing a Configuration Style
    4. Integrating Configuration Styles
  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

Spring Boot Overview

  1. maven and Spring
  2. Spring Boot Structure
  3. Spring POMs with Boot Parents
  4. Spring Boot Starters
  5. Other Capabilities

Spring Testing

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

Spring and Spring Data with Hibernate/JPA

  1. Overview of Spring database support
  2. Configuring a DataSource
  3. Using Spring with Hibernate
  4. High-Level Hibernate Overview
  5. SessionFactory configuration, LocalSessionFactoryBean
  6. Contextual Sessions and Spring Integration
  • 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
  • Spring Data Introduction
    1. Overview and Architecture
    2. Configuring Spring Data
    3. Repositories and JPA Repositories
    4. Using CrudRepository
  • Spring Data Querying
    1. Naming Conventions for Querying
    2. Creating more Complex Queries
    3. Query Configuration

Spring Transaction (TX) Management

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

Spring Web Integration and Intro to Spring MVC

  1. Java EE Web App Integration
  2. ContextLoaderListener and WebApplicationContext
  3. Web MVC Overview
  4. Spring MVC Basics
    1. Configuration and the DispatcherServlet
    2. @Controller, @RequestMapping (Handlers)
    3. @RequestParam and Parameter Binding
    4. View Resolvers
    5. Controller Details - @RequestParam, @PathVariable
    6. Model Data and @ModelAttribute

Additional Spring MVC Capabilities

  1. @ModelAttribute and Reference Data
  2. Forms and Binding, Spring Form Tags
  3. Sessions and @SessionAttributes
  4. Validation / JSR-303

RESTful Services with Spring

  1. REST Overview, URI Templates
  2. REST and Spring MVC
  3. Spring support for REST
  4. @RequestMapping/@PathVariable, @RequestBody, @ResponseBody
  5. URI Templates and @PathVariable
  6. Controllers with @RestController
  7. Generating JSON
    1. JSON Overview
    2. JSON Representations for Resources
    3. Message Converters
  8. Generating XML
    1. JAXB and Jackson Message Converters for XML
    2. JAXB / @XmlRootElement
  9. Content Negotiation

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

Java Clients for RESTful Services

  1. Client Requirements and Spring's RestTemplate
  2. getForObject() / getForEntity()
  3. Other RestTemplate Methods
  4. Accessing Headers / exchange()

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)

Additional New Features in Spring 5

  1. Updates to Spring Core
  2. WebFlux / Reactive Web Framework

XML-Specific Configuration (Optional)

  1. Collections - lists, sets, etc.
  2. Additional Capabilities
  3. Factory Classes and Factory Methods
  4. Definition Inheritance (Parent Beans)
  5. AutoWiring with XML
  6. Inner Beans, Compound Names
TENHO INTERESSE

Cursos Relacionados

Curso AI ML Toolkits with Kubeflow Foundation

24 horas

Curso Container Management with Docker

24 Horas

Curso Machine Learning Python & R In Data Science

32 Horas

Curso Docker for Developers and System Administrators

16 horas

Curso artificial inteligence AI for Everyone Foundation

16 horas

Curso IA Inteligência Artificial e Código Aberto Foundation

16 horas

Curso Artificial Intelligence with Azure

24 Horas

Curso RPA Robotic Process Automation Industria 4.0

32 horas