INSTITUT SUPÉRIEUR DES ÉTUDES TECHNOLOGIQUES DE BÉJA
Formation Spring Boot
Préparé pour : Dr. Wafa NEJI STANCATI
Du 16 février 2021 au18 février 2021
(Tous les jours de 14h jusqu’a !7h)
INSTITUT SUPÉRIEUR DES ÉTUDES TECHNOLOGIQUES DE BÉJA
INSTALLATION ET OUTILS
- IDE: Spring Tools 4
- JDK 1.8
- MySQL Server 8.0.23 et MySQL Workbench
- Postman
PRÈ-REQUIS
- Maitriser la programmation orientée objets avec JAVA
PLAN DE LA FORMATION
Jour 1: Spring Boot- Restful API et JPA (PART 1)
- Introduction
- Nouveau Projet Spring boot
- Rest Controller
- Verbe HTTP avec Spring MVC
- Configurer JPA et MySQL
- Créer une première entité Utilisateur
- Créer un UserRepository
- Créer un service UserService avec des opérations CRUD basiques
- Tester les opérations CRUD avec Postman
- ResponseEntity : Contenu et status
INSTITUT SUPÉRIEUR DES ÉTUDES TECHNOLOGIQUES DE BÉJA
Jour 2: Spring Boot- Restful API et JPA (PART 2)
- Création des requêtes à partir des noms des méthodes (UserRepository)
- Création des requêtes complexes avec l’annotation @Query et JPQL (UserRepository)
- Tester les méthodes avec Postman (@RequestBody, @RequestBody, @PathVariable et @RequestParam )
- Création des entités Rôle, Contact et Adresse
- Les relations avec Spring Data - JPA : OneToMany/ManyToOne, OneToOne, ManyToMany
- Le comportement en cascade
- Le chargement des entités
Jour 3 : Spring Boot, Spring Security et JWT
- Installer Spring Security
- Crypter le mot de passe
- Sign-up web Service avec un endpoint publique
- Authentification avec JWT et Spring Security
- Créer un Filtre d’authentification
- Créer un Filtre d’autorisation