- 1 Welcome to Spring Boot: The Magic of Auto-Configuration The "Why" Before the "How": Why Spring Boot over Standard Spring?Setting up the Environment: JDK, IDE, and Build Tools (Maven/Gradle)Spring Initializr: Bootstrapping Your First ApplicationAnatomy of a Spring Boot App: @SpringBootApplication and the Main Method
- 2 Core Spring Fundamentals: The Engine Under the Hood Inversion of Control (IoC): Giving Up Control for GoodDependency Injection (DI): Wiring Things Together ConceptuallyThe Spring Container and Beans: @Component vs @BeanBean Scopes and Lifecycles: Singleton, Prototype, and Beyond
- 3 Building the Web Layer: Your First REST API Introduction to REST: Resource-Based ThinkingControllers and Routing: @RestController and @RequestMappingHandling Requests: Path Variables, Query Params, and Request BodiesStructuring Responses: DTOs (Data Transfer Objects) and ResponseEntity
- 4 Data Persistence: Talking to Databases with Spring Data JPA The Persistence Layer: JDBC vs Hibernate vs Spring DataEntities and Primary Keys: Mapping Classes to Database TablesRepositories: The Magic Interfaces (JpaRepository)Custom Queries: Derived Query Methods and the @Query Annotation +1
- 5 Robust Data Management: Validation and Migrations Validating Incoming Data: jakarta.validation and the @Valid AnnotationCommon Validation Constraints: @NotNull, @Size, @Email, and moreDatabase Version Control: Why Use Flyway or Liquibase?Writing Your First Migration Script: Safe Database Evolution
- 6 Exception Handling: Dealing with the Unexpected Gracefully The Reality of Errors: Why Good Handling Matters for APIsGlobal Exception Handling: @ControllerAdvice to the RescueCustom Exceptions: Meaningful Error States for Your Specific DomainFormatting Standardized Error Responses: ProblemDetails API
- 7 Testing: Ensuring Your Code Actually Works The Testing Pyramid in the Spring Boot EcosystemUnit Testing Business Logic: JUnit 5 and Mockito BasicsSlice Testing the Web Layer: @WebMvcTestSlice Testing the Data Layer: @DataJpaTest +1
- 8 Spring Security Essentials: Locking the Front Door Authentication vs. Authorization: Concepts ExplainedAdding Spring Security: Understanding Default Auto-Configuration BehaviorCustomizing the SecurityFilterChain: Who Gets Access to What?User Management: Moving from In-Memory to Database-Backed Users
- 9 Advanced Security: Stateless APIs and JWT The Shift to Stateless: Why JWT (JSON Web Tokens)?Token Mechanics: Generating, Signing, and Validating JWTsCreating a Custom JWT Authentication FilterRole-Based Access Control (RBAC): Using @PreAuthorize and Roles
- 10 Talking to the Outside World: Consuming External APIs The Need to Integrate: Microservices and Third-Party API ConceptsModern Synchronous Calls: Using the New RestClientDeclarative HTTP Clients: @HttpExchange InterfacesHandling External API Failures gracefully: Timeouts and Retries
- 11 Background Work: Asynchronous Processing and Scheduling Freeing Up the Main Thread: Introduction to @AsyncConfiguring Async Execution Thread Pools SafelyCron Jobs in Spring: Scheduling Recurring Tasks with @ScheduledHandling Errors in Asynchronous and Scheduled Processes
- 12 Performance Boosters: Caching Strategies The Caching Concept: Why compute the same thing twice?Enabling Spring Cache: @EnableCaching and @CacheableCache Maintenance: Eviction and Updating with @CacheEvict and @CachePutScaling Up: Moving from Local Caching to Distributed Redis
- 13 Production Readiness: Monitoring and Observability Taking the Pulse: Introducing Spring Boot ActuatorSecuring and Exposing Health, Metrics, and Info EndpointsLogging Best Practices: Slf4j, Logback Configurations, and MDCTracing the Flow: Centralized Observability Basics (Micrometer)
- 14 Deployment: Shipping Your Spring Boot App Packaging for Production: The Executable Fat JAR ExplainedEnvironment Configurations: Using Spring Profiles (dev, test, prod)Containerizing Spring Boot: Writing Your First DockerfileOptimizing Docker Images: Buildpacks and Layered JARs