0% found this document useful (0 votes)
38 views

Spring Boot Training Session

Spring boot training session

Uploaded by

micahmjungu
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views

Spring Boot Training Session

Spring boot training session

Uploaded by

micahmjungu
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Suggested Introductory course before the session.

https://www.youtube.com/watch?v=Nv2DERaMx-4

Day 1: Introduction to Spring Boot


 Topics:
1. Spring Framework overview
2. Spring Boot basics and advantages
3. Setting up a Spring Boot project - https://start.spring.io/
4. Maven overview
5. Spring Boot starters and auto-configuration
 Practical task: Set up a basic Spring Boot application with a simple "Hello World" REST
endpoint.
Day 2: REST API Basics with Spring Boot
 Topics:
1. RESTful web services concepts
2. Creating REST controllers
3. Request mappings and HTTP methods
 Practical task: Develop a simple API for a "Book" DTO.
Day 3: Data Persistence with Spring Data JPA
 Topics:
1. Introduction to Spring Data JPA
2. Configuring database connections
3. Creating entity classes and repositories
4. Basic CRUD operations with JPA repositories
 Practical task: Enhance the Book API to use a relational database for persistence.
Day 4: GraphQL with Spring Boot and GraphQL SPQR
 Topics:
1. Introduction to GraphQL and its advantages
2. Setting up GraphQL SPQR with Spring Boot
3. Defining GraphQL schemas using annotations
4. Implementing queries and mutations
5. GraphQL resolvers and data fetchers
 Practical task: Convert the Book API to use GraphQL with GraphQL SPQR, implementing
queries to fetch books and mutations to create, update, and delete books.
Day 5: Security and Authentication
 Topics:
1. Spring Security basics
2. Authentication and authorization
3. JWT-based authentication
4. Securing REST/GraphQL endpoints
 Practical task: Implement JWT authentication for the Book API and secure specific
endpoints.
Day 6: Recap of Day 2-4 & Input Validation and Exception Handling
 Topics:
1. Request validation using annotations
2. Custom validators
3. Global exception handling
4. Creating custom exceptions and error responses
 Practical task: Add input validation to the Book API and implement proper exception
handling.
Day 7: Spring Boot Best Practices and Performance Optimization
Topics:
1. Pagination and Sorting
 Spring Data's Pageable interface
 Implementing pagination in GraphQL queries
2. Performance Tuning
 JPA and Hibernate optimization techniques
 Query optimization and efficient data fetching
Practical tasks:
1. Pagination Implementation:
 Enhance the Book API to support pagination and sorting in both REST and GraphQL
endpoints.
 Implement a GraphQL query that allows fetching books with pagination parameters.
2. Performance Optimization:
 Identify and optimize any N+1 query problems in the existing code.

You might also like