Tagged articles
177 articles
Page 1 of 2
Top Architect
Top Architect
Apr 28, 2026 · Backend Development

Elegant API Rate Limiting with Spring Interceptor and Redis

This article demonstrates a step‑by‑step implementation of API anti‑brush (rate limiting) using a Spring Interceptor combined with Redis, explains how to configure time windows and request limits, introduces a custom @AccessLimit annotation for fine‑grained control, discusses path‑parameter pitfalls, real‑IP handling, and shares practical testing results.

API SecurityInterceptorJava
0 likes · 20 min read
Elegant API Rate Limiting with Spring Interceptor and Redis
java1234
java1234
Mar 8, 2026 · Backend Development

How to Build a Custom MyBatis Plugin: Step-by-Step Guide

This article explains the MyBatis plugin mechanism, walks through implementing the Interceptor interface, configuring the plugin in mybatis-config.xml, provides a complete code example, and outlines common use cases such as SQL logging, performance monitoring, permission control, and automatic field filling.

InterceptorJavaMyBatis
0 likes · 6 min read
How to Build a Custom MyBatis Plugin: Step-by-Step Guide
Selected Java Interview Questions
Selected Java Interview Questions
Mar 3, 2026 · Backend Development

Automate Sensitive Data Encryption in MyBatis with Annotations and Interceptors

This article explains how to replace manual encryption code with a lightweight, annotation‑driven solution that uses a custom MyBatis interceptor to automatically encrypt and decrypt sensitive fields such as phone numbers, emails, and ID cards, improving code readability, maintainability, and security compliance.

InterceptorJavaMyBatis
0 likes · 20 min read
Automate Sensitive Data Encryption in MyBatis with Annotations and Interceptors
java1234
java1234
Mar 3, 2026 · Backend Development

How MyBatis Plugins Execute: Core Interface and Runtime Flow

This article explains MyBatis’s plugin mechanism, detailing the Interceptor interface methods, how plugins form an interceptor chain to wrap core components like Executor, and provides a step‑by‑step example of a logging plugin with code and configuration, illustrating the runtime flow and extension capabilities.

InterceptorJavaMyBatis
0 likes · 7 min read
How MyBatis Plugins Execute: Core Interface and Runtime Flow
java1234
java1234
Mar 1, 2026 · Backend Development

Spring MVC Interceptor vs Filter: Key Differences and Execution Order

This article explains the fundamental differences between Spring MVC interceptors and servlet filters—including definition, scope, configuration, lifecycle, and execution timing—and details their processing order with illustrative code samples and a request flow diagram.

InterceptorJavaServlet
0 likes · 8 min read
Spring MVC Interceptor vs Filter: Key Differences and Execution Order
Java Architect Handbook
Java Architect Handbook
Dec 31, 2025 · Backend Development

Mastering API Rate Limiting with Spring Interceptor and Redis

This article walks through building a Spring MVC interceptor that leverages Redis to enforce per‑IP request limits, explains configurable parameters, shows how to apply protection selectively via mapping rules or custom annotations, and discusses practical pitfalls such as sliding‑window logic, path‑parameter handling, and real‑IP detection.

API SecurityBackendInterceptor
0 likes · 20 min read
Mastering API Rate Limiting with Spring Interceptor and Redis
Java Companion
Java Companion
Dec 28, 2025 · Backend Development

SpringBoot vs Nginx: Five Implementation Options vs One Directive – Which Is the True Anti‑Hotlinking Champion?

An in‑depth comparison of anti‑hotlinking techniques shows how Nginx can enforce protection with a single directive in milliseconds, while SpringBoot offers five approaches—Filter, Interceptor, Nginx config, signed URL, and hybrid strategy—each with different performance, security, and maintenance trade‑offs.

InterceptorNGINXSecurity
0 likes · 14 min read
SpringBoot vs Nginx: Five Implementation Options vs One Directive – Which Is the True Anti‑Hotlinking Champion?
Su San Talks Tech
Su San Talks Tech
Oct 20, 2025 · Backend Development

6 Proven Ways to Accurately Measure API Latency in Java Applications

This article explains why measuring API response time is crucial for performance optimization, monitoring, and user experience, and presents six practical methods—from simple System.currentTimeMillis() calls to Spring AOP, interceptors, filters, and production‑grade Micrometer/APM tools—complete with code examples, pros, cons, and suitable scenarios.

API latencyAPMInterceptor
0 likes · 23 min read
6 Proven Ways to Accurately Measure API Latency in Java Applications
Java Tech Enthusiast
Java Tech Enthusiast
Oct 11, 2025 · Backend Development

How MyBatis Interceptors Can Safeguard Your Java Service from Out‑of‑Memory Crashes

This article explains how oversized database query results can cause JVM memory spikes and OOM errors, and shows how to use MyBatis interceptors to monitor, limit, and protect memory consumption with non‑intrusive code, Prometheus metrics, and configurable thresholds, ultimately improving system stability and performance.

BackendInterceptorJava
0 likes · 20 min read
How MyBatis Interceptors Can Safeguard Your Java Service from Out‑of‑Memory Crashes
Architect
Architect
Sep 29, 2025 · Backend Development

Implement Role‑Based Data Permissions in MyBatis‑Plus with Custom Annotations

This article explains how to add data‑permission filtering to MyBatis‑Plus by creating a custom annotation, implementing a global interceptor, wiring a permission‑handler, configuring the interceptor in the MyBatis‑Plus plugin, and extending the solution with role‑based scopes for advanced use cases.

Data PermissionInterceptorJava
0 likes · 13 min read
Implement Role‑Based Data Permissions in MyBatis‑Plus with Custom Annotations
Architect
Architect
Sep 14, 2025 · Backend Development

Interceptor vs Filter in Spring MVC: Key Differences, Code Samples, and Usage Guide

This article explains the fundamental differences between Spring MVC interceptors and servlet filters, provides complete Java code examples for both, shows how to configure them in Spring and web.xml, and summarizes when to choose each approach for request handling and AOP-like functionality.

InterceptorJavaSpring MVC
0 likes · 11 min read
Interceptor vs Filter in Spring MVC: Key Differences, Code Samples, and Usage Guide
macrozheng
macrozheng
Sep 3, 2025 · Backend Development

How to Build a Lightweight Spring Boot API Firewall for Real‑Time Protection

This article walks through the design and implementation of a lightweight API firewall embedded in a Spring Boot application, covering background pain points, core capabilities such as blacklist/whitelist, QPS and user‑limit controls, online configuration via a modern web console, technical choices, detailed code examples, deployment tips, and practical use cases for small‑to‑medium services.

BlacklistInterceptorMicroservices
0 likes · 24 min read
How to Build a Lightweight Spring Boot API Firewall for Real‑Time Protection
Top Architect
Top Architect
Aug 21, 2025 · Backend Development

Master 10 Essential Spring Extension Points for Robust Backend Development

This article walks through the ten most useful Spring extension points—including global exception handling, custom interceptors, bean access, @Import usage, startup runners, BeanDefinition modification, initialization callbacks, BeanPostProcessor hooks, destroy callbacks, and custom scopes—providing clear explanations and ready‑to‑use code examples for each.

BackendBeanFactoryBeanPostProcessor
0 likes · 17 min read
Master 10 Essential Spring Extension Points for Robust Backend Development
Code Ape Tech Column
Code Ape Tech Column
Aug 6, 2025 · Backend Development

Implement Role‑Based Data Permissions in MyBatis‑Plus Using Annotations & Interceptors

This article explains how to enforce data‑access restrictions in MyBatis‑Plus by creating a custom @UserDataPermission annotation, building an InnerInterceptor that rewrites SQL queries, handling role‑based scopes, and integrating the interceptor into the MyBatis‑Plus plugin for both basic and advanced use cases.

Backend DevelopmentData PermissionInterceptor
0 likes · 17 min read
Implement Role‑Based Data Permissions in MyBatis‑Plus Using Annotations & Interceptors
Sanyou's Java Diary
Sanyou's Java Diary
Jul 31, 2025 · Databases

How MyBatis Interceptors Can Safeguard Your Java Service from Memory Overruns

This article explains how oversized database query results can cause JVM heap spikes, frequent Full GC, or OOM crashes in Java services, and demonstrates a non‑intrusive MyBatis interceptor solution that monitors, grades, and blocks risky queries while exposing Prometheus metrics for proactive alerting and capacity planning.

InterceptorJavaMyBatis
0 likes · 18 min read
How MyBatis Interceptors Can Safeguard Your Java Service from Memory Overruns
JD Tech Talk
JD Tech Talk
Jul 21, 2025 · Backend Development

Mastering Spring Interceptors: How to Implement, Configure, and Optimize

Learn how Spring interceptors work, their relationship with WebApplicationContext, various types, configuration methods, execution flow, advanced features, and practical examples such as logging and authentication, plus a comparison with servlet filters and demo results.

Backend DevelopmentInterceptorJava
0 likes · 7 min read
Mastering Spring Interceptors: How to Implement, Configure, and Optimize
Java Backend Technology
Java Backend Technology
Jul 10, 2025 · Backend Development

Unlock Spring’s Power: Global Exception Handling, Custom Interceptors, and Thread‑Local Scopes

Explore Spring’s extensibility by mastering global exception handling with @RestControllerAdvice, creating custom MVC interceptors, accessing the container via BeanFactoryAware, importing configurations, adding startup logic, modifying BeanDefinitions, using initialization callbacks, and defining a thread‑local custom scope for per‑thread bean instances.

ApplicationRunnerCustom ScopeException Handling
0 likes · 10 min read
Unlock Spring’s Power: Global Exception Handling, Custom Interceptors, and Thread‑Local Scopes
Architecture Digest
Architecture Digest
Jun 19, 2025 · Backend Development

Supercharge Spring Boot HTTP Calls with Retrofit: A Complete Guide

This article introduces retrofit‑spring‑boot‑starter, a lightweight HTTP client for Spring Boot that simplifies request creation and offers powerful features such as custom OkHttpClient injection, annotation‑based interceptors, connection‑pool management, logging, retry, error decoding, circuit‑breaker support, service discovery, and flexible call adapters and converters, all with concise configuration examples.

HTTP clientInterceptorRetrofit
0 likes · 21 min read
Supercharge Spring Boot HTTP Calls with Retrofit: A Complete Guide
JD Tech
JD Tech
Jun 18, 2025 · Backend Development

How to Instantly Spot Problematic SQL with a MyBatis Coloring Interceptor

This article explains how to implement a lightweight MyBatis interceptor that annotates SQL statements with their mapper ID and execution stack, enabling developers to quickly locate performance bottlenecks during high‑traffic events, and also shows an AspectJ alternative for non‑MyBatis projects.

DebuggingInterceptorJava
0 likes · 30 min read
How to Instantly Spot Problematic SQL with a MyBatis Coloring Interceptor
JD Cloud Developers
JD Cloud Developers
Jun 10, 2025 · Backend Development

How to Instantly Spot Problematic SQL with MyBatis Interceptor Coloring

This article introduces a lightweight SQL‑coloring technique for MyBatis that annotates each executed query with its mapper ID and call‑stack, enabling developers to pinpoint performance bottlenecks instantly without hunting through multiple code paths, and provides both MyBatis interceptor and AspectJ weaving implementations.

InterceptorJavaMyBatis
0 likes · 30 min read
How to Instantly Spot Problematic SQL with MyBatis Interceptor Coloring
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 9, 2025 · Backend Development

How to Dynamically Enable/Disable Spring Boot Controllers with AOP, Interceptors, and Custom Mappings

This article explains four practical ways to control the availability of Spring Boot controller endpoints at runtime—using @ConditionalOnProperty, a custom AOP annotation, a HandlerInterceptor, and a custom RequestMappingHandlerMapping—detailing code examples, configuration, advantages, and trade‑offs.

Backend DevelopmentCustom MappingInterceptor
0 likes · 9 min read
How to Dynamically Enable/Disable Spring Boot Controllers with AOP, Interceptors, and Custom Mappings
Code Ape Tech Column
Code Ape Tech Column
Jun 8, 2025 · Backend Development

Boost Your Spring Boot HTTP Calls with retrofit‑spring‑boot‑starter – A Complete Guide

This article introduces the lightweight retrofit‑spring‑boot‑starter for Spring Boot, explains its key features such as custom OkHttpClient, annotation‑based interceptors, logging, retry, circuit‑breaker support, and shows step‑by‑step configuration, dependency setup, and code examples for building robust HTTP client services.

HTTP clientInterceptorJava
0 likes · 23 min read
Boost Your Spring Boot HTTP Calls with retrofit‑spring‑boot‑starter – A Complete Guide
macrozheng
macrozheng
Jun 6, 2025 · Backend Development

Master 10 Essential Spring Boot Extension Points for Robust Backend Development

This guide walks through ten crucial Spring Boot extension points—including global exception handling, custom interceptors, container access, configuration imports, startup runners, bean definition tweaks, initialization hooks, bean post‑processing, graceful shutdown, and custom scopes—providing clear explanations and ready‑to‑use code samples for building resilient backend services.

Backend DevelopmentCustom ScopeException Handling
0 likes · 15 min read
Master 10 Essential Spring Boot Extension Points for Robust Backend Development
Java Tech Enthusiast
Java Tech Enthusiast
May 14, 2025 · Backend Development

Understanding SpringBoot Interceptors: Filters, HandlerInterceptor, AOP, RestTemplate, Feign, and WebFilter

This article introduces the six main types of interceptors in SpringBoot—Filter, HandlerInterceptor, AOP, RestTemplate, Feign, and WebFilter—explaining their typical use‑cases, implementation details, common pitfalls, and best‑practice ordering to help developers choose the right tool for each scenario.

Backend DevelopmentInterceptorJava
0 likes · 8 min read
Understanding SpringBoot Interceptors: Filters, HandlerInterceptor, AOP, RestTemplate, Feign, and WebFilter
Su San Talks Tech
Su San Talks Tech
May 9, 2025 · Backend Development

Master Spring Boot Interceptors: Filters, Handlers, AOP, RestTemplate & Feign

This article explores the hierarchy of Spring Boot interception mechanisms—Filter, HandlerInterceptor, AOP, RestTemplate, Feign, and WebFilter—detailing their typical use cases, implementation code, pitfalls, and best‑practice ordering, while providing practical tips and performance monitoring advice for robust backend development.

InterceptorJavaSpring Boot
0 likes · 8 min read
Master Spring Boot Interceptors: Filters, Handlers, AOP, RestTemplate & Feign
Java Tech Enthusiast
Java Tech Enthusiast
Apr 29, 2025 · Backend Development

Implementing Data Isolation with MyBatis Interceptor and Custom Annotations

The article describes how to enforce environment‑based data isolation in a shared database by adding an env column, using a MyBatis interceptor to inject and filter this field at runtime, and employing a custom @InvokeChainSkipEnvRule annotation with AOP to selectively bypass the rule, keeping existing code untouched.

Custom AnnotationData IsolationInterceptor
0 likes · 9 min read
Implementing Data Isolation with MyBatis Interceptor and Custom Annotations
Java Captain
Java Captain
Apr 22, 2025 · Backend Development

Implementing Data Isolation with MyBatis Interceptor and Custom Annotations in Java

This article describes how to achieve multi‑environment data isolation in a Java backend by adding an env field to tables, using a MyBatis interceptor with JSqlParser to rewrite SQL, and applying custom annotations and AOP to control environment‑specific logic while preserving existing business code.

BackendCustom AnnotationData Isolation
0 likes · 9 min read
Implementing Data Isolation with MyBatis Interceptor and Custom Annotations in Java
Top Architect
Top Architect
Jan 8, 2025 · Backend Development

Implementing Data Permission Interceptor in MyBatis‑Plus with Custom Annotations

This article explains how to create a custom annotation and a MyBatis‑Plus interceptor that automatically injects data‑permission SQL conditions based on the current user's role, showing both a basic implementation and an advanced version with role‑based scope handling, complete with code examples and integration steps.

Backend DevelopmentData PermissionInterceptor
0 likes · 16 min read
Implementing Data Permission Interceptor in MyBatis‑Plus with Custom Annotations
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 30, 2024 · Mobile Development

Dynamic Base URL Switching in Retrofit Using Interceptor and Custom Annotations

This article explains the limitations of the default Retrofit baseUrl configuration, reviews three existing solutions, and presents a comprehensive interceptor‑based approach that leverages custom @BaseUrl annotations to dynamically switch base URLs at runtime while handling @Url full‑path parameters correctly.

AndroidDynamicBaseUrlInterceptor
0 likes · 20 min read
Dynamic Base URL Switching in Retrofit Using Interceptor and Custom Annotations
Lobster Programming
Lobster Programming
Dec 20, 2024 · Backend Development

Filters vs Interceptors in Java Web Apps: Key Differences Explained

This article compares Java web filters and Spring MVC interceptors, detailing their implementation differences, origins, execution order, supported project types, and typical use‑cases, helping developers choose the right tool for request handling, security, logging, and other cross‑cutting concerns.

InterceptorJavaServlet Filter
0 likes · 5 min read
Filters vs Interceptors in Java Web Apps: Key Differences Explained
Selected Java Interview Questions
Selected Java Interview Questions
Nov 20, 2024 · Backend Development

Implementing Unified Functionality in Spring with Interceptors, AOP, Exception Handling, and Response Formatting

This article explains how to use Spring's HandlerInterceptor to implement common cross‑cutting concerns such as user login validation, unified exception handling, and standardized JSON response formats, comparing it with Spring AOP and providing step‑by‑step code examples and configuration details.

InterceptorMVCexception-handling
0 likes · 18 min read
Implementing Unified Functionality in Spring with Interceptors, AOP, Exception Handling, and Response Formatting
Java Architect Essentials
Java Architect Essentials
Sep 26, 2024 · Backend Development

Implementing Interface Rate Limiting in Spring Boot Using Interceptor, Redis, and Custom Annotations

This article demonstrates how to build a flexible API rate‑limiting solution in Spring Boot by combining a HandlerInterceptor, Redis counters, and custom annotations with reflection, covering configuration, code examples, mapping rules, time‑window nuances, path‑parameter handling, and real‑IP considerations.

Custom AnnotationInterceptorJava
0 likes · 18 min read
Implementing Interface Rate Limiting in Spring Boot Using Interceptor, Redis, and Custom Annotations
Top Architect
Top Architect
Sep 16, 2024 · Backend Development

Implementing Data Permission Interceptor in MyBatis‑Plus Using Custom Annotations

This article explains how to create a custom annotation and MyBatis‑Plus interceptor to enforce data‑permission filtering based on user roles, provides both basic and advanced implementations with complete Java code examples, and shows how to integrate the interceptor into the MyBatis‑Plus plugin configuration.

Backend DevelopmentData PermissionInterceptor
0 likes · 15 min read
Implementing Data Permission Interceptor in MyBatis‑Plus Using Custom Annotations
Architecture Digest
Architecture Digest
Jul 11, 2024 · Backend Development

MyBatis-Plus Data Permission Interceptor: Annotation, Interceptor, and Role-Based Scope Implementation

This guide explains how to implement data permission control in MyBatis-Plus by creating a custom annotation, an interceptor that modifies SQL before execution, a handler that builds WHERE clauses based on user roles, and how to register the interceptor in the MyBatis-Plus plugin, covering both basic and advanced versions.

BackendData PermissionInterceptor
0 likes · 13 min read
MyBatis-Plus Data Permission Interceptor: Annotation, Interceptor, and Role-Based Scope Implementation
Architecture Digest
Architecture Digest
Jul 5, 2024 · Backend Development

Implementing Data Permission Interceptor in MyBatis-Plus with Custom Annotations

This tutorial explains how to globally enforce data‑permission filtering in MyBatis‑Plus by creating a custom @UserDataPermission annotation, implementing an InnerInterceptor that modifies SQL WHERE clauses based on user roles, and configuring the interceptor within the MyBatis‑Plus plugin system.

Backend DevelopmentCustom AnnotationData Permission
0 likes · 11 min read
Implementing Data Permission Interceptor in MyBatis-Plus with Custom Annotations
Architect's Guide
Architect's Guide
Jun 1, 2024 · Backend Development

Implementing API Idempotency with Spring Boot, Redis, and Custom Annotations

This article explains how to achieve reliable API idempotency in Spring Boot applications by using Redis for token storage, defining a custom @AutoIdempotent annotation, implementing token generation and validation services, configuring an interceptor, and providing test cases to demonstrate the workflow.

IdempotencyInterceptorJava
0 likes · 11 min read
Implementing API Idempotency with Spring Boot, Redis, and Custom Annotations
Java High-Performance Architecture
Java High-Performance Architecture
May 9, 2024 · Backend Development

How to Implement Role-Based Data Permissions in MyBatis-Plus with Interceptors

Learn how to enforce role‑based data permission filtering in MyBatis‑Plus by creating custom annotations, implementing an InnerInterceptor, and integrating a permission handler that dynamically builds WHERE clauses based on user roles, with both basic and advanced examples covering SQL parsing, role scopes, and plugin configuration.

Backend DevelopmentData PermissionInterceptor
0 likes · 17 min read
How to Implement Role-Based Data Permissions in MyBatis-Plus with Interceptors
Code Ape Tech Column
Code Ape Tech Column
Mar 8, 2024 · Backend Development

Implementing Environment Isolation in MyBatis with a Custom Interceptor and Annotation

This article describes how to achieve data environment isolation in a Java application by creating a custom MyBatis interceptor and annotation, allowing automatic SQL modification to handle env fields, reducing code changes, improving safety, and supporting flexible deployment across pre‑release, gray, and production environments.

InterceptorJavaMyBatis
0 likes · 11 min read
Implementing Environment Isolation in MyBatis with a Custom Interceptor and Annotation
Java Backend Technology
Java Backend Technology
Mar 4, 2024 · Backend Development

How to Achieve Seamless Data Isolation in SpringBoot with MyBatis Interceptors

This article walks through the challenges of sharing a single database across pre‑release, gray, and online environments, explains how to add an env field for isolation, and shows a custom MyBatis interceptor and annotation‑driven AOP solution that rewrites SQL to automatically handle environment filtering and insertion while keeping business code untouched.

Custom AnnotationData IsolationInterceptor
0 likes · 9 min read
How to Achieve Seamless Data Isolation in SpringBoot with MyBatis Interceptors
Architect
Architect
Feb 20, 2024 · Backend Development

Implementing Interface Rate Limiting with Spring Interceptor and Redis in Java

This article demonstrates how to prevent API abuse in a Java Spring application by using a custom HandlerInterceptor combined with Redis to track request counts per IP and URI, covering basic implementation, configuration, custom annotations, reflection for flexible limits, and discusses potential pitfalls and improvements.

InterceptorJavaReflection
0 likes · 19 min read
Implementing Interface Rate Limiting with Spring Interceptor and Redis in Java
JD Retail Technology
JD Retail Technology
Jan 31, 2024 · Databases

Low‑Cost Database Stability Improvement and Lightweight Table Partitioning Using MyBatis Interceptor

This article explains how to use a MyBatis interceptor to cheaply improve database stability for high‑growth tables, compares common archiving and sharding solutions, and provides a complete, code‑driven implementation of date‑based horizontal sharding with binlog‑driven double‑write to handle critical‑point data continuity.

BinlogInterceptorJava
0 likes · 11 min read
Low‑Cost Database Stability Improvement and Lightweight Table Partitioning Using MyBatis Interceptor
Top Architect
Top Architect
Jan 29, 2024 · Backend Development

Implementing Interface Rate Limiting with Spring Interceptor and Redis

This article demonstrates how to implement API request throttling in a Spring Boot application using a custom Interceptor and Redis, covering basic principles, configuration, custom annotations, reflection for per‑endpoint limits, handling path parameters, and addressing timing logic nuances.

InterceptorJavarate limiting
0 likes · 21 min read
Implementing Interface Rate Limiting with Spring Interceptor and Redis
Architecture Digest
Architecture Digest
Jan 28, 2024 · Backend Development

Implementing Interface Rate Limiting with Spring Interceptor and Redis

This article demonstrates how to build a Spring‑based API rate‑limiting solution using an Interceptor and Redis, covering the basic principle, project setup, code implementation, custom annotation with reflection for flexible limits, handling path‑parameter keys, real‑IP acquisition, and practical considerations for production use.

BackendInterceptorJava
0 likes · 18 min read
Implementing Interface Rate Limiting with Spring Interceptor and Redis
Java High-Performance Architecture
Java High-Performance Architecture
Jan 19, 2024 · Backend Development

Mastering Data Isolation in Java: MyBatis Interceptor & Custom Annotations

This article walks through the challenges of environment‑specific data isolation in a Java project, explains why adding an env column to every table is impractical, and presents a clean solution using a MyBatis interceptor that rewrites SQL and custom annotations to control filtering, ensuring safe, maintainable code across pre‑release, gray, and production environments.

Custom AnnotationData IsolationInterceptor
0 likes · 12 min read
Mastering Data Isolation in Java: MyBatis Interceptor & Custom Annotations
Java Captain
Java Captain
Jan 15, 2024 · Backend Development

Implementing Interface Rate Limiting with Spring Interceptor and Redis

This article explains how to prevent API abuse by using a Spring Interceptor combined with Redis to count requests per IP and URI, demonstrates step‑by‑step code implementations, discusses custom annotations, mapping rules, time‑window challenges, path‑parameter handling, and real‑IP extraction for robust backend rate limiting.

BackendInterceptorJava
0 likes · 15 min read
Implementing Interface Rate Limiting with Spring Interceptor and Redis
Architect
Architect
Jan 15, 2024 · Backend Development

Implementing Data Isolation in MyBatis with a Custom Interceptor and Annotations

This article walks through the problem of sharing a single database across pre‑release, gray, and production environments, explains why adding an env column to dozens of tables is error‑prone, and demonstrates a MyBatis interceptor‑based solution with custom annotations that isolates data while preserving backward compatibility.

BackendCustom AnnotationData Isolation
0 likes · 14 min read
Implementing Data Isolation in MyBatis with a Custom Interceptor and Annotations
Java High-Performance Architecture
Java High-Performance Architecture
Jan 9, 2024 · Backend Development

How to Build a Flexible API Rate‑Limiting System with Spring Interceptor and Redis

This article demonstrates step‑by‑step how to prevent API abuse in a Spring MVC application by using an Interceptor combined with Redis for counting requests, customizing limits per endpoint through annotations and reflection, handling mapping rules, path‑parameter challenges, and obtaining the real client IP.

InterceptorJavaReflection
0 likes · 19 min read
How to Build a Flexible API Rate‑Limiting System with Spring Interceptor and Redis
Selected Java Interview Questions
Selected Java Interview Questions
Dec 18, 2023 · Backend Development

Implementing API Idempotency with Spring Boot, Redis, and Custom Annotations

This article explains the concept of idempotency, presents several strategies to achieve it, and provides a complete Spring Boot implementation using Redis, a custom @AutoIdempotent annotation, token generation and verification, interceptor configuration, and test cases to ensure only the first request succeeds.

BackendIdempotencyInterceptor
0 likes · 10 min read
Implementing API Idempotency with Spring Boot, Redis, and Custom Annotations
Architect
Architect
Dec 3, 2023 · Backend Development

Implementing Automatic Idempotency in Spring Boot with Redis and Interceptors

This article explains how to achieve automatic request idempotency in Spring Boot applications by using Redis for token storage, custom @AutoIdempotent annotation, and a web interceptor that validates tokens, providing code examples, configuration steps, and testing procedures.

InterceptorJavaSpring Boot
0 likes · 12 min read
Implementing Automatic Idempotency in Spring Boot with Redis and Interceptors
Architecture Digest
Architecture Digest
Nov 28, 2023 · Backend Development

Unified User Login Permission Validation, Exception Handling, and Data Formatting in Spring Boot

This article demonstrates how to implement unified user login permission checks, centralized exception handling, and consistent response formatting in Spring Boot using AOP, HandlerInterceptor, @ControllerAdvice, and ResponseBodyAdvice, providing step‑by‑step code examples and configuration details.

Backend DevelopmentException HandlingInterceptor
0 likes · 12 min read
Unified User Login Permission Validation, Exception Handling, and Data Formatting in Spring Boot
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 13, 2023 · Backend Development

Using SpringMVC Interceptor to Prevent Duplicate Submissions

This article explains how duplicate form submissions occur, outlines common prevention techniques such as token validation and timestamp checks, and demonstrates a practical SpringMVC interceptor implementation with token storage and scheduled cleanup to ensure request uniqueness and reduce server load.

BackendInterceptorJava
0 likes · 8 min read
Using SpringMVC Interceptor to Prevent Duplicate Submissions
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 27, 2023 · Backend Development

Applying the Chain of Responsibility Pattern in Spring MVC Interceptors

This article explains how the Chain of Responsibility design pattern is implemented within Spring MVC interceptors, detailing the request flow, interceptor lifecycle methods, and practical differences from the classic GoF definition, while also exploring other typical use cases of the pattern.

Backend DevelopmentChain of ResponsibilityInterceptor
0 likes · 10 min read
Applying the Chain of Responsibility Pattern in Spring MVC Interceptors
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 24, 2023 · Backend Development

Applying the Chain of Responsibility Design Pattern in Spring MVC Interceptors

This article explains how the Chain of Responsibility design pattern is employed within Spring MVC interceptors, detailing the interceptor lifecycle, code implementation, differences from the classic GoF definition, and broader use cases such as authentication, logging, and order processing.

Backend DevelopmentChain of ResponsibilityInterceptor
0 likes · 10 min read
Applying the Chain of Responsibility Design Pattern in Spring MVC Interceptors
Architect
Architect
Oct 8, 2023 · Backend Development

Deep Dive into OkHttp: Core Principles, Interceptor Chain, and Practical Usage

This article provides a comprehensive analysis of OkHttp’s source code, explaining its request‑execution flow, layered architecture, interceptor chain design, and demonstrates how to implement custom interceptors for unified request handling in Java and Android projects.

AndroidDesignPatternHTTP
0 likes · 15 min read
Deep Dive into OkHttp: Core Principles, Interceptor Chain, and Practical Usage
Java High-Performance Architecture
Java High-Performance Architecture
Aug 4, 2023 · Backend Development

Implement Role‑Based Data Permissions in MyBatis‑Plus with Custom Interceptors

This guide explains how to enforce user‑role based data access in MyBatis‑Plus by creating a custom annotation, building an InnerInterceptor that modifies SQL WHERE clauses, configuring the interceptor in the MyBatis‑Plus plugin, and extending the approach to handle department‑level and self‑only scopes.

Backend DevelopmentData PermissionInterceptor
0 likes · 15 min read
Implement Role‑Based Data Permissions in MyBatis‑Plus with Custom Interceptors
macrozheng
macrozheng
Jul 25, 2023 · Backend Development

Dynamic SQL with MyBatis Interceptors in Spring Boot

This tutorial explains how to use MyBatis interceptor mechanisms to dynamically modify SQL statements at runtime in a Spring Boot application, covering interceptor types, implementation steps, configuration, core code, testing, and common use cases such as SQL monitoring, pagination, and data permission filtering.

Dynamic SQLInterceptorJava
0 likes · 11 min read
Dynamic SQL with MyBatis Interceptors in Spring Boot
Su San Talks Tech
Su San Talks Tech
Jul 14, 2023 · Backend Development

How to Use MyBatis Interceptor for Dynamic SQL in Spring Boot 3

This article demonstrates how to leverage MyBatis interceptor mechanism in a Spring Boot 3 application to dynamically modify SQL statements, showing step‑by‑step implementation, configuration, core code, testing, and common use cases such as SQL monitoring, pagination, and data permission filtering.

Dynamic SQLInterceptorJava
0 likes · 11 min read
How to Use MyBatis Interceptor for Dynamic SQL in Spring Boot 3
Top Architect
Top Architect
Jul 5, 2023 · Backend Development

Implementing IP Geolocation in Spring Boot Using ip2region (Local and Online Methods)

This article explains how to integrate IP geolocation into a Spring Boot application by using the ip2region library for offline lookups and an online API for real‑time address resolution, providing code samples, dependency setup, caching strategies, and an interceptor to attach IP information to every request.

BackendIP geolocationInterceptor
0 likes · 12 min read
Implementing IP Geolocation in Spring Boot Using ip2region (Local and Online Methods)
vivo Internet Technology
vivo Internet Technology
May 17, 2023 · Mobile Development

Deep Dive into OkHttp: Core Principles, Interceptor Chain, and Practical Usage

By dissecting OkHttp’s source, the article explains its layered architecture, the interceptor‑chain implementation of the Chain‑of‑Responsibility pattern, and shows how developers can add custom interceptors—such as authentication headers—to uniformly handle requests, retries, caching, and network I/O in Java and Android.

AndroidDesign PatternsHTTP
0 likes · 16 min read
Deep Dive into OkHttp: Core Principles, Interceptor Chain, and Practical Usage
Top Architect
Top Architect
May 9, 2023 · Backend Development

Unified User Login Permission Validation, Exception Handling, and Response Formatting in Spring Boot

This article demonstrates how to consolidate user login permission checks, exception handling, and unified JSON response structures in a Spring Boot application by using AOP, custom HandlerInterceptor, @ControllerAdvice, and ResponseBodyAdvice, providing complete code examples and implementation details.

Exception HandlingInterceptorJava
0 likes · 21 min read
Unified User Login Permission Validation, Exception Handling, and Response Formatting in Spring Boot
Architect
Architect
May 8, 2023 · Backend Development

Traceable Logging in Spring Boot: Using Logback, Interceptors, MDC and Custom Thread Pools

This article demonstrates how to implement end‑to‑end traceable logging in a Spring Boot application by configuring Logback, creating a request interceptor that injects a TRACE_ID, propagating the ID across thread pools with custom executors and MDC utilities, and verifying the solution with sample controller code and log output.

AsynchronousInterceptorSpring Boot
0 likes · 12 min read
Traceable Logging in Spring Boot: Using Logback, Interceptors, MDC and Custom Thread Pools
Selected Java Interview Questions
Selected Java Interview Questions
Apr 23, 2023 · Backend Development

Implementing Interface Rate Limiting with Spring Interceptor and Redis (Demo)

This article demonstrates a step‑by‑step implementation of API request throttling in a Spring backend using an Interceptor and Redis, covering the underlying principle, configurable limits, custom annotations, reflection‑based flexibility, and practical considerations such as path parameters and real‑IP handling.

InterceptorJavaannotation
0 likes · 16 min read
Implementing Interface Rate Limiting with Spring Interceptor and Redis (Demo)
Architect's Guide
Architect's Guide
Apr 4, 2023 · Backend Development

Implementing Unified User Login, Exception Handling, and Data Response in Spring Boot with AOP and Interceptors

This article demonstrates how to use Spring Boot AOP and HandlerInterceptor to create a unified user login permission check, standardized exception handling with @ControllerAdvice, and consistent JSON response formatting, providing step‑by‑step code examples and configuration details for building robust backend services.

Exception HandlingInterceptorSpring Boot
0 likes · 19 min read
Implementing Unified User Login, Exception Handling, and Data Response in Spring Boot with AOP and Interceptors
Top Architect
Top Architect
Apr 2, 2023 · Backend Development

Implementing Request Rate Limiting in Spring Boot with Custom Annotations

This article demonstrates how to create a Spring Boot request‑rate‑limiting solution using a custom @RequestLimit annotation, a Redis‑backed interceptor, and configuration classes, providing step‑by‑step code examples and usage instructions for both class‑level and method‑level protection.

BackendInterceptorJava
0 likes · 9 min read
Implementing Request Rate Limiting in Spring Boot with Custom Annotations
Java High-Performance Architecture
Java High-Performance Architecture
Apr 1, 2023 · Backend Development

Mastering Spring Boot Filters and Interceptors: A Complete Guide with Code Samples

This article explains the differences between servlet filters and Spring MVC interceptors, demonstrates how to wrap requests with HttpServletRequestWrapper, use OncePerRequestFilter, configure filters and interceptors in Spring Boot, handle login interception with AJAX redirects, set up listeners, manage static resources, and provides step‑by‑step testing procedures with code examples.

InterceptorJavaServlet
0 likes · 14 min read
Mastering Spring Boot Filters and Interceptors: A Complete Guide with Code Samples
Top Architect
Top Architect
Mar 22, 2023 · Backend Development

Implementing Unified User Login Validation, Exception Handling, and Data Return Format in Spring Boot

This article demonstrates how to consolidate user login verification, exception handling, and response formatting in a Spring Boot application by using AOP, HandlerInterceptor, @ControllerAdvice, and ResponseBodyAdvice, providing complete code examples and explaining the underlying request processing flow.

Backend DevelopmentException HandlingInterceptor
0 likes · 20 min read
Implementing Unified User Login Validation, Exception Handling, and Data Return Format in Spring Boot
Architect's Guide
Architect's Guide
Mar 19, 2023 · Backend Development

Implementing Unified Functionality in Spring Boot: Authentication, Data Formatting, Exception Handling, and Interceptors

This article demonstrates how to build a unified processing module in Spring Boot by using AOP and HandlerInterceptor to centralize user login validation, standardize response formats, handle exceptions globally with @ControllerAdvice, and configure path prefixes, providing complete code examples and implementation details.

BackendException HandlingInterceptor
0 likes · 17 min read
Implementing Unified Functionality in Spring Boot: Authentication, Data Formatting, Exception Handling, and Interceptors
Java High-Performance Architecture
Java High-Performance Architecture
Mar 17, 2023 · Backend Development

Master Unified Login, Exception, and Response Handling in Spring Boot with AOP and Interceptors

This article walks through building a Spring Boot application that centralizes user login verification, exception handling, and response formatting by leveraging AOP, custom HandlerInterceptors, @ControllerAdvice, and ResponseBodyAdvice to create clean, maintainable backend code.

Exception HandlingInterceptorSpring Boot
0 likes · 20 min read
Master Unified Login, Exception, and Response Handling in Spring Boot with AOP and Interceptors
Java Architect Essentials
Java Architect Essentials
Feb 10, 2023 · Backend Development

Using MDC for TraceId Propagation in Java Backend Applications

This article explains what MDC (Mapped Diagnostic Context) is, outlines its API, demonstrates how to configure logging and interceptors, and provides concrete solutions—including a custom thread‑pool wrapper and HTTP client interceptors—to ensure TraceId is correctly propagated across threads and remote calls in Java backend systems.

InterceptorThreadPoollogging
0 likes · 12 min read
Using MDC for TraceId Propagation in Java Backend Applications
Selected Java Interview Questions
Selected Java Interview Questions
Nov 17, 2022 · Backend Development

Spring Boot Login Authentication: Filters, Interceptors, AOP, ThreadLocal, and Parameter Resolver

This article presents a comprehensive Spring Boot tutorial on implementing non‑intrusive login authentication using three techniques—Filter, Interceptor, and AOP with custom annotations—plus extensions such as ThreadLocal storage and a Spring MVC argument resolver, complete with project setup, Maven dependencies, and test screenshots.

InterceptorParameter ResolverSpring Boot
0 likes · 13 min read
Spring Boot Login Authentication: Filters, Interceptors, AOP, ThreadLocal, and Parameter Resolver