Extracting HTTP Request Parameters in Spring Boot Interceptors
Reading HTTP request parameters within a Spring Boot HandlerInterceptor presents a speicfic challenge: the servlet input stream can only be consumed once. If a downstream controller or another filter reads the body, the interceptor will encounter an empty stream. To resolve this, the request must be wrapped to cache the payload, allowing multip ...
Posted on Mon, 20 Jul 2026 16:39:11 +0000 by LiamH
Implementing Server-Sent Events for Streaming Conversational AI Responses
For streaming responses through Server-Sent Events (SSE), ensure this Nginx configuration is disabled: proxy_buffering off;
While OkHttp3 disables redirects by default, Forest implements its own redirect mechanism. To align OkHttp3 with Forest's behavior, configure custom redirect handling in an interceptor.
Project Dependencies
<dependency& ...
Posted on Fri, 17 Jul 2026 17:00:49 +0000 by tbone-tw
Implementing Idempotency and Duplicate Prevention in Order Creation
Resource Integration
Update the hosts file and copy static resources to nginx. Place dynamic template files in the order service's templates directory and adjust resource paths. Configure routing in the gateway similar to creating a new service.
SpringSession Integration
Import required dependencies according to official documentation and confi ...
Posted on Fri, 17 Jul 2026 16:20:08 +0000 by Daisy Cutter
Implementing Stateless Authentication and Role-Based Access Control with Spring Security
Core Concepts and Architecture Overview
Spring Security operates as a comprehensive security framework within the Spring ecosystem. Compared to alternatives like Apache Shiro, it offers a broader feature set and a more extensive community. While lightweight applications often favor Shiro for its simplicity, enterprise-grade systems typically re ...
Posted on Sat, 11 Jul 2026 16:02:50 +0000 by PHPBewildered
Practical Redis Integration with Java and Spring Boot
This guide demonstrates hands-on Redis usage in Java applications, covering direct client interaction via Jedis, configuration best practices, and seamless integration with Spring Boot using both Jedis and Lettuce clients.
Command-Line Interaction
Before integrating into code, verify Redis connectivity using the CLI:
redis-cli -h 192.168.100.11 ...
Posted on Fri, 10 Jul 2026 17:22:49 +0000 by madwormer2
Flower E-commerce Platform with Spring Boot and Vue.js Architecture
Backend Implementation
The application utilizes Spring Boot for backend services with MyBatis as the persistence layer. This configuration enables efficient database operations while maintaining clean separation of concerns.
@SpringBootApplication
@RestController
public class FlowerShopApplication {
public static void main(String[] args) { ...
Posted on Fri, 10 Jul 2026 17:14:31 +0000 by transparencia
Building a RESTful API with Spring Boot: From Database to Endpoints
Spring Boot REST API Implemantation
Project Configuration
Spring Setup
The project is initialized using Spring Initializr at https://start.spring.io/. The following properties are configured in the application.properties file:
spring.datasource.url=jdbc:mysql://localhost:3306/personnel_directory
spring.datasource.username=admin
spring.datasourc ...
Posted on Sun, 05 Jul 2026 16:26:11 +0000 by j3rmain3
Troubleshooting MyBatis and MyBatis-Plus Mapper Binding Failures
When working with MyBatis or MyBatis-Plus in Spring Boot applications, encountering "Invalid bound statement (not found)" exceptions typically indicates that mapper interfaces cannot locate their corresponding XML mapping files. This guide outlines common misconfigurations and their solutions.
Mapper Location Configuration
The primary ...
Posted on Fri, 03 Jul 2026 16:18:29 +0000 by ident
Comprehensive Guide to Exception Handling in Spring Web MVC
Exception management is a critical aspect of web applications, requiring attention on both client and server sides. For robust systems, implementing exception handling at both ends is recommended. This article focuses specifically on managing HTTP request exceptions on the server side using Spring's Web MVC framework.
Common Exception Types
Whe ...
Posted on Thu, 02 Jul 2026 16:57:51 +0000 by mrmigu
Implementing Stateless Authentication with JSON Web Tokens in Spring Boot 2.x
Transitioning from Session-Based to Stateless Authentication
Traditional HTTP sessions maintain user state directly on the server. During authentication, the server creates a session object, persists it in memory or a shared cache, and returns a session identifier embedded in a client-side cookie. Every subsequent request automatically attaches ...
Posted on Mon, 29 Jun 2026 17:00:30 +0000 by shashiku