Skip to main content

Spring

Jersey REST API – Complete File Upload and Download Example

Build a complete file-upload REST endpoint with Jersey 3.x: single file, multiple files, HTML form testing, curl commands, file-size limits, and a download endpoint. Includes production-hardening tips for cloud storage and MIME validation.

Mastering Maven: How to Create Your Own Custom Archetypes

Build a custom Maven archetype from scratch: create the descriptor, add Velocity-templated source files, install locally, generate a new Spring Boot project from it, and deploy to a team-shared repository. Step-by-step with working code.

Complete Guide to Logback RollingFileAppender

Master Logback RollingFileAppender with time-based, size-and-time, and fixed-window rolling policies. Includes production-ready logback.xml examples, Spring Boot integration, async logging, and a complete FAQ.

Building a REST API with Spring Boot: Complete Beginner's Guide

A complete beginner's guide to building a REST API with Spring Boot 3. Covers project setup, clean package structure, a Java record model with Bean Validation, a service layer, a @RestController with GET/POST/PUT/DELETE endpoints, global exception handling with @RestControllerAdvice, and end-to-end curl testing u2014 with fully annotated code throughout.

Testing Microservices with JUnit 6: Integration, Contract & E2E

A complete guide to testing microservices with JUnit 6: single-service integration tests with WireMock, consumer-driven contract tests with Spring Cloud Contract, and end-to-end tests with Docker Compose and Testcontainers. Covers async event testing and state management strategies.

Testing REST APIs with JUnit 6: MockMvc vs WebTestClient

A complete guide to testing REST APIs with JUnit 6 using both MockMvc and WebTestClient. Covers GET, POST, PUT, DELETE testing, JSON path assertions, validation error testing, file uploads, authentication, and a matcher quick-reference table.