Szkolenia Capstone Courseware

Cel szkolenia

kod: CC-117E | wersja: v4.1

This course enables the experienced Java developer to use the Spring MVC framework to create RESTful web services. We begin by developing fluency with the Spring container and configuration practices, and then learn the annotation-driven MVC system for REST controllers. We consider persistence techniques and unit testing to round out the week.

Learning Objectives

  • Understand the scope, purpose, and architecture of Spring.
  • Use Spring application contexts to declare application components, rather than hard-coding their states and lifecycles.
  • Use dependency injection to further control object relationships from outside the Java code base.
  • Use annotations to take advantage of Spring post-processors for automated bean instantiation and wiring.
  • Configure systems of Spring beans using either Java or XML.
  • Build web applications and RESTful services as a Spring DispatcherServlet and associated application context.
  • Use Spring MVC annotations to map request URLs, methods, content types, and parameters to Java methods, and to bind request data to method parameters.
  • Validate input via HTTP requests, and use exception handlers to produce appropriate HTTP error responses.
  • Build REST clients using Spring's "REST template."
  • Connect REST controllers to persistent stores using Spring for JDBC or JPA.
  • Control transactions either programmatically with TransactionTemplate or declaratively with @Transaction annotations.
  • Use the Spring testing framework for tests of core components, REST controllers, and persistence components.

Plan szkolenia Rozwiń listę

  1. Overview of Spring
    • Java EE: The Good, The Bad, and the Ugly
    • Enter the Framework
    • Spring Value Proposition
    • The Spring Container
    • Web Applications
    • Persistence Support
    • Aspect-Oriented Programming
    • The Java EE Module(s)
  2. The Container
    • JavaBeans, Reconsidered
    • The Factory Pattern
    • Inversion of Control
    • XML View: Declaring Beans
    • Java View: Using Beans
    • Singletons and Prototypes
  3. Instantiation and Configuration
    • Configuring Through Properties
    • Configuration Namespaces
    • The p: Notation
    • Bean (Configuration) Inheritance
    • Configuring Through Constructors
    • Bean Post-Processors
    • Lifecycle Hooks
    • Integrating Existing Factory Code
    • Awareness Interfaces
  4. Dependency Injection
    • Assembling Object Graphs
    • Dependency Injection
    • Single and Multiple Relationships
    • The Utility Schema
    • Using Spring Expression Language (SpEL)
    • Inner Beans
    • Autowiring
    • @Component, @Service, & Company
    • @Autowired Properties
    • Best Practices with Spring Annotations
    • Java Classes as @Configurations
    • AnnotationConfigApplicationContext
    • Capabilities and Limitations
    • Mixing and Importing XML and Java Configurations
  5. Assembling Object Models
    • Collections and Maps
    • Support for Generics
    • The Spring Utility Schema (util:)
    • Autowiring to Multiple Beans
    • Order of Instantiation
    • Bean Factory vs. Application Context
  6. REST Basics
    • The REST Vision
    • Use of HTTP
    • Use of URIs
    • Use of Content Types
    • CRUD Operations and Business Operations
    • Hypermedia, and the Richardson Maturity Model
  7. The Web Module
    • Servlets and JSPs: What's Missing
    • The MVC Pattern
    • The Front Controller Pattern
    • DispatcherServlet
    • A Request/Response Cycle
    • The Strategy Pattern
    • Web Application Contexts
    • Annotation-Based Handler Mappings
    • @Controller and @RequestMapping
    • "Creating" a Model
    • Entities, Not Views
  8. Handling Requests
    • Matching URLs
    • Matching Methods
    • Matching Content Types
    • Path Variables
    • Request Parameters
    • Headers and Cookies
    • Injectable Method Parameters
    • Command Objects vs. Entities
    • @RequestBody and @ResponseBody
    • @RestController
    • HttpEntityand ResponseEntity
  9. Producing Responses
    • Return Types
    • Default Content Types
    • Default Status Codes
    • @ResponseStatus and HttpStatus
    • The produces Element
    • ResponseEntity
    • Binary Content
  10. Entities and Complex Content
    • Converters and Formatters
    • HttpMessageConverter
    • Using
    • Built-In HttpMessageConverters
    • Working with XML
    • Working with JSON
    • Custom Message Converters
  11. Generic Services
    • Applying Patterns
    • Generic Service Methods
    • Annotation Inheritance
    • Separation of Concerns
    • CRUD, Sub-Resource, and Business Methods
    • Entity Representations
    • Entity Relationships
  12. Error Handling and Validation
    • Error Handling for REST Services
    • HandlerException Resolver
    • @ExceptionHandler
    • @ControllerAdvice for Global Handling
    • Validation in Spring MVC
    • Java-EE Bean Validation
    • Configuration
    • Support for @Valid
    • Message Sources and Localization
    • Resolving Error Codes
  13. Data Representations and Hypermedia
    • Multiple Representations
    • Filtering with @JsonView
    • Handling Object Associations: Embedding
    • Handling Object Associations: Passing IDs
    • Handling Object Associations: Linking
    • Hypermedia
  14. REST Clients
    • RestTemplate
    • Sending HTTP Requests
    • Translating Entities
    • Reading Responses
    • Error Handlers
  15. Persistence with JDBC
    • Reducing Code Complexity
    • The DataAccessException Hierarchy
    • JdbcTemplate
    • RowMapperand ResultSetExtractor
    • The DaoSupport Hierarchy
    • Capturing Generated Keys
    • Transaction Control
    • TransactionTemplate
    • Isolation Levels
    • Transaction Propagation
  16. Persistence with JPA
    • Object/Relational Mapping
    • The Java Persistence API
    • JpaDaoSupport and JpaTemplate
    • @PersistenceUnit and @PersistenceContext
    • Shared Entity Managers
    • Using
    • The @Transaction Annotation
    • Isolation and Propagation
    • A Limitation of @Transactional
    • Understanding Entity States
    • Bean Validation in JPA
    • Optimistic Locking
    • Bi-Directional Associations and Serialization
    • Using @XmlTransient
    • Using @JsonView
  17. Testing
    • Testability of Spring Applications
    • Dependency Injection
    • Mocking
    • SpringJUnit4ClassRunner
    • TestContext
    • @ContextConfiguration
    • Mocking Spring MVC
    • Building Requests
    • Checking Content
    • xpath() and jsonPath()
    • Profiles
    • Testing Persistence Components
Pobierz konspekt szkolenia w formacie PDF

Dodatkowe informacje

Wymagania wstępne
Poziom trudności
Czas trwania 5 dni
Certyfikat

The participants will obtain certificates signed by Capstone Courseware.

Prowadzący

Authorized Capstone Courseware Trainer.

Pozostałe szkolenia Capstone Courseware | Open-Source Frameworks

Szkolenia powiązane tematycznie

Java

Programowanie

Formularz kontaktowy

Prosimy o wypełnienie poniższego formularza, jeśli chcą Państwo uzyskać więcej informacji o powyższym szkoleniu.






* pola oznaczone (*) są wymagane

Informacje o przetwarzaniu danych przez Compendium – Centrum Edukacyjne Spółka z o.o.

CENA 4950 PLN NETTO

FORMA SZKOLENIA ?

 

MATERIAŁY SZKOLENIOWE ?

 

WYBIERZ TERMIN SZKOLENIA

  • szkolenie dostępne w wersji stacjonarnej we wskazanej lokalizacji lub w trybie zdalnym, w zależności od preferencji uczestnika: HYBRID
    • Informacje ogólne
    • Termin gwarantowany
    • Last minute (-10%)
    • Język obowiązujący na szkoleniu
    • Polski
Zarezerwuj termin szkolenia
zamknij

Szkolenie stacjonarne

Szkolenia stacjonarne w Compendium CE odbywają się najczęściej w naszych lokalizacjach w Krakowie i Warszawie, ale także w miejscu ustalonym przez klienta. Grupa uczestnicząca w szkoleniu spotyka się w danym miejscu o określonym czasie i wraz z trenerem aktywnie uczestniczy w laboratoriach.

Szkolenie dlearning

W szkoleniach Compendium Distance Learning możesz uczestniczyć z dowolnego miejsca na świecie. Kursanci, dzięki zaawansowanej technologii, którą dostarcza Compendium CE, stale widzą i słyszą trenera, mogą mu zadawać pytania poprzez chat i mikrofon, a także uczestniczą w ćwiczeniach i laboratoriach, które rozwiązują wraz z prowadzącym. Po więcej informacji zajrzyj na stronę dlearning.eu

zamknij

Materiały papierowe

Materiały tradycyjne: cena zawiera standardowe materiały wydawane w postaci książek papierowych, drukowanych lub innej, w zależności od ustaleń z producentem.

Materiały elektroniczne

Materiały elektroniczne: są to materiały szkoleniowe w wersji elektronicznej, które w zależności od dostawcy udostępniane są za pomocą dedykowanych aplikacji: Skillpipe, eVantage itd. lub w postaci dokumentów PDF.

Materiały ctab

Materiały ctab: cena zawiera tablet ctab oraz materiały szkoleniowe w formie elektronicznej bądź tradycyjne materiały szkoleniowe i materiały dodatkowe dostarczone w wersji elektronicznej w zależności od ustaleń z producentem (w postaci dokumentów PDF lub EPUB). Tak dostarczone materiały są przystosowane pod kątem wyświetlania ich na tablecie ctab. Po więcej informacji zajrzyj na stronę ctab.

Najbliższe szkolenia Capstone Courseware

  • 2025-03-31 | 5 dni | Virtual Classroom

    172 Java Foundation Classes

  • 2025-03-31 | 5 dni | Warszawa / Wirtualna sala

    251 Introduction to Android Development

    szkolenie dostępne w wersji stacjonarnej we wskazanej lokalizacji lub w trybie zdalnym, w zależności od preferencji uczestnika: HYBRID
  • 2025-04-01 | 4 dni | Virtual Classroom

    114 The Struts Framework

  • 2025-04-01 | 4 dni | Warszawa / Wirtualna sala

    114 The Struts Framework

    szkolenie dostępne w wersji stacjonarnej we wskazanej lokalizacji lub w trybie zdalnym, w zależności od preferencji uczestnika: HYBRID
  • 2025-04-07 | 5 dni | Virtual Classroom

    163 Enterprise JavaBeans

  • 2025-04-07 | 5 dni | Warszawa / Wirtualna sala

    161-HB JPA with Hibernate

    szkolenie dostępne w wersji stacjonarnej we wskazanej lokalizacji lub w trybie zdalnym, w zależności od preferencji uczestnika: HYBRID
  • 2025-04-07 | 5 dni | Warszawa / Wirtualna sala

    172 Java Foundation Classes

    szkolenie dostępne w wersji stacjonarnej we wskazanej lokalizacji lub w trybie zdalnym, w zależności od preferencji uczestnika: HYBRID
  • 2025-04-08 | 4 dni | Virtual Classroom

    162 Java EE Persistence

  • 2025-04-08 | 4 dni | Warszawa / Wirtualna sala

    162 Java EE Persistence

    szkolenie dostępne w wersji stacjonarnej we wskazanej lokalizacji lub w trybie zdalnym, w zależności od preferencji uczestnika: HYBRID
  • 2025-04-14 | 5 dni | Virtual Classroom

    255 Android Development

Harmonogram szkoleń
Capstone Courseware