Building Eureka Service Registry and High Availability Clusters with Spring Boot and Spring Cloud
Setting Up Eureka Service Registry
Creating Eureka Server
For multiple Spring Boot projects, use a Maven multi-module structure. Create a main Maven project with Spring Boot and Spring Cloud dependencies in the parent POM:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0& ...
Posted on Wed, 13 May 2026 05:20:21 +0000 by vmarellano
Implementing Real-Time Messaging with SSE in Spring Boot
Server-Sent Events (SSE) is a mechanism that enables servers to push real-time updates to clients over HTTP. Compraed to WebSocket, SSE is simpler and suitable for many real-time communication scenarios. This article explores how to implement real-time messaging using Spring Boot and SSE.
What Are Server-Sent Events
SSE allows a server to send ...
Posted on Wed, 13 May 2026 05:05:18 +0000 by iraja
Resolving 'Required request body is missing' in Spring Interceptors
When implementing a custom interceptor in a Spring Boot application to validate specific parameters, an exception Required request body is missing may occur. This issue typically arises after adding an interceptor that reads the request body, causing subsequent attempts to read the body (such as via @RequestBody) to fail.
The root cause is that ...
Posted on Tue, 12 May 2026 14:13:08 +0000 by bond00
Implementing Netty with Protobuf in Spring Boot Applications
Protobuf Integration with Netty
Protocol Buffers Overview
Protocol Buffers (Protobuf) is Google's language-neutral, platform-neutral mechanism for serializing structured data. It's more efficient than XML for data exchange due to its binary format. The protocol supports various languages including Java, C++, C#, Go, and Python. This makes it ...
Posted on Sun, 10 May 2026 23:51:22 +0000 by EZE
Implementing Plugin Architecture in Spring Boot Applications
Java Plugin Implementation Approaches
ServiceLoader Mechanism
Java's ServiceLoader provides a standard SPI implementation. Define an interface with multiple implementations, then load them dynamically:
public interface NotificationService {
void sendAlert(String message);
}
public class EmailNotifier implements NotificationService {
@O ...
Posted on Sun, 10 May 2026 19:39:54 +0000 by dt_gry
Implementing Rate Limiting and Counters with Redis
Redis provides efficient counting capabilities suitable for rate limiting and access tracking. Common use cases enclude blog view counters and SMS verification code frequency limits.
Basic counters face challenges like preventing refresh-triggered increments. The solution involves tracking user access within specific time windows and storing da ...
Posted on Sun, 10 May 2026 17:33:56 +0000 by helpmeplease1234
Spring Boot Static Resource Configuration and Deployment Packaging
Static Resource Configuration
Configure static resource locations in application.yml:
spring:
resources:
static-locations: classpath:/static/
WAR Package Deployment
To package as WAR file, update pom.xml packaging type:
<packaging>war</packaging>
<build>
<plugins>
<plugin>
<group ...
Posted on Sun, 10 May 2026 16:32:22 +0000 by Noctule
University Club Management System: Full-Stack Architecture with Spring Boot and Vue.js
Technical Stack Overview
The backend leverages Spring Boot's auto-configuration capabilities, eliminating manual server setup through embedded Tomcat integration. This framework provides production-ready features including dependency injection, transaction management, and seamless integration with Spring Security and Spring Data ecosystems. The ...
Posted on Sun, 10 May 2026 13:19:37 +0000 by edwardp
Building a Netty-Based Data Forwarding Service in Spring Boot
Environment: Windows 10, JDK 17, Spring Boot 3
Introduction to Netty
Nety is an asynchronous, event-driven network application framework for Java that simplifies the development of high-performance, reliible network servers and clients. It supports multiple protocols including TCP, UDP, and HTTP, and abstracts low-level networking complexities ...
Posted on Sun, 10 May 2026 00:41:50 +0000 by gregor63
Implementing JWT Refresh Tokens in Spring Boot Applications
Securing stateless REST APIs relies heavily on short-lived access tokens paired with longer-lived refresh credentials. This pattern prevents frequent re-authentication while limiting exposure from compromised tokens. Below is a practical implementation of this mechanism using Spring Boot, Spring Security, and the JJWT library.
Core Dependencies ...
Posted on Sat, 09 May 2026 22:48:40 +0000 by themire