Tag

Annotation

0 views collected around this technical thread.

Top Architecture Tech Stack
Top Architecture Tech Stack
Jun 4, 2025 · Backend Development

Designing a Unified API Response Structure for Backend Services

This article explains how to design a consistent JSON response format for backend APIs, covering status‑code conventions, message handling, data payloads, a Result wrapper class, controller implementation, a @ResponseResult annotation, interceptor logic, and suggestions for further optimization.

APIAnnotationDesign
0 likes · 7 min read
Designing a Unified API Response Structure for Backend Services
Java Captain
Java Captain
May 14, 2025 · Backend Development

Rate Limiting in Java: Redis, Spring AOP, and Custom Annotations

This article explains the concept of rate limiting, introduces common algorithms such as token bucket and leaky bucket, and provides a complete Spring‑Boot implementation using Redis, custom annotations, AOP, and utility classes for distributed request throttling.

AOPAnnotationJava
0 likes · 21 min read
Rate Limiting in Java: Redis, Spring AOP, and Custom Annotations
Java Architect Essentials
Java Architect Essentials
May 13, 2025 · Backend Development

Using @Timed Annotation in SpringBoot for Automatic Request Time Statistics

The article explains how the SpringBoot @Timed annotation can automatically record method execution times, replacing verbose manual timing code, and demonstrates basic and advanced usages with custom metric names and tags to simplify performance monitoring in backend development.

AnnotationJavaPerformance
0 likes · 6 min read
Using @Timed Annotation in SpringBoot for Automatic Request Time Statistics
Java Architect Essentials
Java Architect Essentials
May 12, 2025 · Backend Development

Simplify File Uploads in Spring Boot with the @RequestPart Annotation

This article explains how the Spring Boot @RequestPart annotation can dramatically simplify file upload handling by automatically binding multipart data to method parameters, reducing boilerplate code, supporting validation, large files, and real‑world use cases with clear code examples.

@RequestPartAnnotationFileUpload
0 likes · 7 min read
Simplify File Uploads in Spring Boot with the @RequestPart Annotation
Java Architect Essentials
Java Architect Essentials
May 10, 2025 · Backend Development

Using @ViewController Annotation for Conditional View Rendering in Spring Boot

The article introduces the custom @ViewController annotation for Spring Boot, explains how it simplifies conditional view selection compared with manual if‑else logic, provides basic and advanced code examples, lists its advantages, and shows real‑world usage in an e‑commerce project.

AnnotationConditionalRenderingJava
0 likes · 6 min read
Using @ViewController Annotation for Conditional View Rendering in Spring Boot
Selected Java Interview Questions
Selected Java Interview Questions
May 7, 2025 · Backend Development

Easy-Data-Scope: A Simple Data‑Permission Library for MyBatis and Spring Boot

This article introduces easy-data-scope, a lightweight Java library that enables dynamic SQL‑based data permission control for MyBatis, MyBatis‑Plus, and MyBatis‑Flex, showing how to set up the project, configure dependencies, define annotations, and apply various permission scenarios with code examples.

AnnotationData PermissionJava
0 likes · 9 min read
Easy-Data-Scope: A Simple Data‑Permission Library for MyBatis and Spring Boot
macrozheng
macrozheng
Apr 30, 2025 · Backend Development

Master Dynamic Data Permissions in Spring Boot with Easy-Data-Scope

This tutorial walks through setting up the easy-data-scope library in a Spring Boot project, configuring the database and dependencies, defining DataScopeInfo, using the @DataScope annotation, and demonstrating various permission scenarios such as filtering by ID, age, merging conditions, and custom templates.

AnnotationData PermissionJava
0 likes · 11 min read
Master Dynamic Data Permissions in Spring Boot with Easy-Data-Scope
Java Architect Essentials
Java Architect Essentials
Apr 29, 2025 · Backend Development

Using @Validated in Spring Boot to Eliminate Repetitive Validation Code

This article explains how the @Validated annotation in Spring Boot can replace repetitive validation logic by supporting group validation, providing cleaner code, better maintainability, and higher development efficiency for Java backend developers.

@ValidatedAnnotationGroup Validation
0 likes · 9 min read
Using @Validated in Spring Boot to Eliminate Repetitive Validation Code
Java Architect Essentials
Java Architect Essentials
Apr 28, 2025 · Backend Development

Simplifying SpringBoot Controllers with the @RestController Annotation

The article explains how using SpringBoot's @RestController annotation can replace the verbose combination of @Controller and @ResponseBody, reducing configuration overhead, aligning with convention‑over‑configuration principles, and streamlining backend development for faster, cleaner API implementations.

AnnotationJavaRestController
0 likes · 7 min read
Simplifying SpringBoot Controllers with the @RestController Annotation
Java Architect Essentials
Java Architect Essentials
Apr 27, 2025 · Backend Development

Concept-Download: A Spring‑Based Library for Simplified File Download, Compression and Reactive Streaming

This article introduces a Spring‑compatible download library that lets developers annotate a single method to download arbitrary objects—files, HTTP resources, or custom objects—while handling caching, concurrent loading, compression, and reactive response writing for both MVC and WebFlux environments.

AnnotationJavaReactive Programming
0 likes · 14 min read
Concept-Download: A Spring‑Based Library for Simplified File Download, Compression and Reactive Streaming
Selected Java Interview Questions
Selected Java Interview Questions
Mar 14, 2025 · Backend Development

Design and Implementation of a Business Rate‑Limiting Component Using Redis Lua Scripts and Kotlin Annotations

This article explains how to design and implement a business-specific rate‑limiting component in Kotlin using Redis Lua scripts and Spring AOP annotations, covering the motivation, rule definitions, counting strategies, Lua script details, annotation creation, and a practical usage example.

AnnotationKotlinRedis
0 likes · 10 min read
Design and Implementation of a Business Rate‑Limiting Component Using Redis Lua Scripts and Kotlin Annotations
Java Tech Enthusiast
Java Tech Enthusiast
Mar 2, 2025 · Backend Development

Simplify File Downloads in SpringBoot with a Single @Download Annotation

The Concept‑Download library lets SpringBoot developers replace verbose download code with a single @Download annotation that automatically handles classpath resources, local files, HTTP URLs, custom objects, compression and reactive streaming, simplifying batch and QR‑code ZIP exports.

AOPAnnotationFileDownload
0 likes · 8 min read
Simplify File Downloads in SpringBoot with a Single @Download Annotation
Architect's Guide
Architect's Guide
Feb 15, 2025 · Backend Development

Using @TableLogic Annotation for Logical Deletion in MyBatis-Plus

This article explains how the @TableLogic annotation in MyBatis-Plus implements logical deletion by converting delete operations into updates, details its parameters, supported field types, global configuration, and provides complete Java and SQL code examples for practical usage.

AnnotationJavaLogical Deletion
0 likes · 8 min read
Using @TableLogic Annotation for Logical Deletion in MyBatis-Plus
Java Tech Enthusiast
Java Tech Enthusiast
Feb 3, 2025 · Backend Development

Auto‑Registration of Executors and JobHandlers for XXL‑Job with a Spring Boot Starter

The Spring Boot starter automatically registers XXL‑Job executors and job handlers at application startup by logging into the admin console, scanning beans for methods annotated with @XxlJob and @XxlRegister, and invoking the admin APIs to create missing groups and jobs, eliminating manual configuration.

AnnotationJavaSpring Boot
0 likes · 14 min read
Auto‑Registration of Executors and JobHandlers for XXL‑Job with a Spring Boot Starter
Code Ape Tech Column
Code Ape Tech Column
Jan 6, 2025 · Backend Development

Optimizing Large IN Queries in PostgreSQL with Spring AOP and Multithreaded Splitting

This article explains how to improve performance of massive IN‑list queries in PostgreSQL by splitting the list, executing sub‑queries in parallel using a custom Spring AOP annotation, and merging the results with a configurable handler, providing a reusable solution for Java backend services.

AOPAnnotationJava
0 likes · 10 min read
Optimizing Large IN Queries in PostgreSQL with Spring AOP and Multithreaded Splitting
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.

AnnotationDynamicBaseUrlInterceptor
0 likes · 20 min read
Dynamic Base URL Switching in Retrofit Using Interceptor and Custom Annotations
Selected Java Interview Questions
Selected Java Interview Questions
Dec 6, 2024 · Backend Development

Design and Implementation of a Lightweight Data Translation Framework for Java Backend Applications

This article introduces a lightweight, extensible Java framework that uses custom annotations to translate relational data, dictionaries, collections, and nested objects, detailing its background, architecture, core annotation design, usage examples, advanced features, Spring Boot integration, ORM support, and provides the open‑source repository link.

AnnotationData TranslationJava
0 likes · 17 min read
Design and Implementation of a Lightweight Data Translation Framework for Java Backend Applications
Architecture Digest
Architecture Digest
Nov 28, 2024 · Backend Development

Automatic Insertion of UserId and OrderId into Logs Using Spring AOP and MDC

This article explains how to automatically embed userId and orderId into log statements by defining log placeholders, storing these values in MDC via ThreadLocal, and using a custom @UserLog annotation together with Spring AOP to inject the data before method execution, complete with configuration and test examples.

AOPAnnotationJava
0 likes · 8 min read
Automatic Insertion of UserId and OrderId into Logs Using Spring AOP and MDC
Architecture Digest
Architecture Digest
Nov 19, 2024 · Backend Development

Implementing Idempotency in Spring Boot Using Redis and Custom Annotations

This article explains the concept of idempotency, identifies which HTTP operations are naturally idempotent, describes why idempotency is needed in scenarios like timeout retries, async callbacks and message queues, and provides a complete Spring Boot implementation using a custom annotation, Redis storage, AOP interception, token generation and example controllers.

AOPAnnotationIdempotency
0 likes · 8 min read
Implementing Idempotency in Spring Boot Using Redis and Custom Annotations
Java Architect Essentials
Java Architect Essentials
Nov 3, 2024 · Backend Development

Fast‑Retry: High‑Performance Asynchronous Multi‑Task Retry Framework for Java

Fast‑Retry is a high‑performance Java framework that enables asynchronous, multi‑task retries with both programmatic and annotation‑based APIs, dramatically improving throughput for large‑scale retry scenarios compared to traditional synchronous retry libraries.

AnnotationJavaPerformance
0 likes · 8 min read
Fast‑Retry: High‑Performance Asynchronous Multi‑Task Retry Framework for Java