Posts tagged with #spring-boot

Embedded Web Servers in Spring Boot: Tomcat, Jetty, Undertow

Configure embedded servers in Spring Boot: compare Tomcat, Jetty, and Undertow, tune thread pools, enable access logs, and switch implementations.

JUnit 5 & Jupiter: Lifecycle, Nested & Parameterized Tests

Explore JUnit 5 Jupiter features: master test lifecycle annotations, organize tests with @Nested, and parameterize tests with @CsvSource and @MethodSource.

Mockito: Mocking, Stubbing, Verifications, Spy vs Mock

Learn Mockito fundamentals: create mocks and spies, stub behavior with when().thenReturn(), verify interactions, and choose between Spy vs Mock wisely.

Spring Boot Actuator: Health Checks, Metrics, Info Endpoints, Custom Indicators

Monitor Spring Boot apps with Actuator: built-in health checks, metrics, info endpoints, and how to build custom health indicators.

Spring Boot Actuator Deep Dive: Custom Metrics and Health Indicators

Deep dive into Spring Boot Actuator: expose custom metrics with Micrometer, create custom HealthIndicators, and secure actuator endpoints properly.

Spring Boot Application Structure: Layout and Component Scanning

Explore Spring Boot project structure conventions, the role of @SpringBootApplication, and how component scanning discovers beans.

Spring Boot Caching: @Cacheable, @CacheEvict, and Redis

Implement Spring Boot caching with @Cacheable, @CacheEvict, and Redis: reduce database load, handle cache hits, misses, and invalidation properly.

Spring Boot Configuration Properties: @ConfigurationProperties and Relaxed Binding

Master Spring Boot external configuration with @ConfigurationProperties, relaxed binding rules, and application.yml/yml setup.