Skip to main content

Spring

How to Use Jersey Client to Call REST Services in Java

A complete guide to consuming REST APIs with the Jersey Client API: GET, POST, PUT, DELETE requests, JSON handling, query parameters, headers, authentication, and error handling — with annotated Java code and sample output.

Mastering Cache Control with ETag in Spring Boot RESTful APIs

ETag cache control in a Spring Boot REST API, re-verified on Spring Boot 4.1.1 and Spring Framework 7.0.9: the zero-code ShallowEtagHeaderFilter, deep caching with WebRequest.checkNotModified(), conditional PUT with If-Match, and strong vs weak ETags.

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.