Skip to main content

Spring

Spring Boot 4 HTTP Service Clients: Build REST Clients with Just an Interface

A complete, hands-on guide to HTTP Service Clients in Spring Boot 4 and Spring Framework 7. Learn how to replace RestTemplate and manual WebClient boilerplate with declarative @HttpExchange interfaces, configure service groups via @ImportHttpServices, set per-group timeouts and base URLs with application.properties, test with @RestClientTest, and migrate from OpenFeign — with fully annotated production-grade code and sample output.

Set Up RMI and Hessian Remoting in Spring Boot 2

Learn how to configure Java RMI and Hessian remoting in Spring Boot 2 with RmiServiceExporter, HessianServiceExporter, and their proxy factory beans. Includes server and client configuration, shared interface setup, and a comparison table.

Creating Spring Beans with Static Factory Methods

Learn how to create Spring beans using static factory methods with @Bean configuration and XML. Covers third-party class registration, profile-based implementations, construction-time validation, and JUnit testing.

Top 40 Spring MVC Interview Questions and Answers (2025)

Prepare for your Java interview with the top 40 Spring MVC interview questions and answers covering DispatcherServlet, annotations, REST, validation, exception handling, and more — from beginner to advanced.

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.

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.