framework spring

Goals


- Building robust Java EE applications based on Spring MVC and Spring ORM

- Implementing REST web services

Program

Structure of a JEE web application
Principle of MVC and MVC 2
Spring architectures : presentation, building
blocks of Spring Ioc bases : concepts, implementation, structure of configuration files Contribution
of MVC 2 frameworks and positioning of Spring MVC
Implementation of Spring MVC
Organization of data access (Relational-Object Mapping – ORM)

Practical workshop: installation of the development and execution environment – construction of the minimal structure of a Spring MVC project

Beans configuration and dependency injection
Control of properties
Configuration inheritance
Assigning collections to the properties of a bean
Access to JNDI resources: configuration of data sources, email sessions

Practical workshop: Multiple bean configurations

Lifecycle of a request and presentation of the Spring taglib
Graphic components, creation of forms
Spring MVC controllers: creation, mapping of actions
Validation of forms: JSF validators, Bean Validation (JSR 303)
Management of error messages
Listeners, Interceptors
Language EL: presentation, expressions, implicit objects
Internationalization (i18n) in a Spring MVC application
Error
handling Type and conversion management
Definition and configuration of custom interceptors Upload
management

Workshop: Implementation of several forms: creation, validation, processing

Persistence spaces: page, request, session, application Session
handling: adding and retrieving attributes
Defining and using application variables
Creating and retrieving cookies

Workshop: Using the available persistence spaces

Presentation of templating solutions, layouts and custom components
Setup: configuration
Model page and use

Workshop: Integration of templates and use

Management of page loading
Asynchronous requests:
– Communication (XMLHttpRequest object)
– Sending / processing of the response
– Specific tags

Workshop: Implementation of asynchronous actions and partial data loads

REST architecture: operation, HTTP methods
Spring RestController: annotations, mappings
Return of
interceptor objects and security
Writing REST clients

Workshop: REST web services with @RestController

Java persistence techniques,
JPA object-relational mapping : presentation, versions (1.0 vs 2.0), existing frameworks (Hibernate, EclipseLink, EJB)
Integration of the JPA layer in a Java EE application
Implementation of a persistent class, use of annotations
Development: Beans, serialization, associations Mapping of classes: id and properties, associations (embedded, one-to-one, one-to-many, …), inheritance etc …
Handling of persistent objects
Loading (techniques of reading, strategies: lazy, eager)
Synchronization with the database (flushing)
Persistence cascade (writing)
Queries (JPQL): queries, predications, projections, joins
Transactions and competition
Locking techniques

Workshops: Setting up a complete data access layer in a Spring MVC web application

Duration

5 days

Price

£ 2564

Audience

Java Developers

Prerequisites

Mastery of Java, knowledge of Servlets and JSP

Reference

JAV100219-F

Sessions

Contact us for more informations about session date