Tagged articles
333 articles
Page 1 of 4
Lisa Notes
Lisa Notes
Apr 23, 2026 · Fundamentals

Java Annotations from Scratch: A Step‑by‑Step Guide

The article explains Java annotations, covering their purpose, usage in compilation, documentation and runtime, demonstrates built‑in annotations such as @Deprecated, @Override and @SuppressWarnings, shows how to define custom annotations, set retention policies, and create annotation processors with concrete code examples.

CustomAnnotationJavaPredefinedAnnotations
0 likes · 11 min read
Java Annotations from Scratch: A Step‑by‑Step Guide
Coder Trainee
Coder Trainee
Mar 30, 2026 · Backend Development

Mastering @ConditionalOnProperty: Controlling Bean Activation in Spring Boot

This article explains how Spring Boot's @ConditionalOnProperty annotation determines whether a configuration class or bean is loaded based on property values in application.yml, detailing its attributes (name, havingValue, prefix, value, matchIfMissing), practical usage examples.

ConditionalOnPropertyConfigurationJava
0 likes · 4 min read
Mastering @ConditionalOnProperty: Controlling Bean Activation in Spring Boot
ShiZhen AI
ShiZhen AI
Mar 14, 2026 · Artificial Intelligence

How Context Hub Lets AI Coding Assistants Remember Past Pitfalls

Context Hub, an open‑source tool from Andrew Ng's team, automates real‑time API documentation retrieval and adds persistent annotations and community feedback, enabling AI coding assistants to avoid outdated calls, remember previous mistakes, and continuously improve their knowledge base.

AI programming assistantAPI documentationCLI tool
0 likes · 10 min read
How Context Hub Lets AI Coding Assistants Remember Past Pitfalls
Coder Trainee
Coder Trainee
Mar 7, 2026 · Backend Development

Why @Data and @Builder Conflict in Lombok: Avoid This Common Pitfall

When @Data and @Builder are used together on a Lombok‑annotated class, the generated code can lose getters, setters, and the no‑argument constructor, leading to compilation failures; the article explains the cause and shows how to fix it with @NoArgsConstructor and @RequiredArgsConstructor.

@DataBuilderCode Generation
0 likes · 4 min read
Why @Data and @Builder Conflict in Lombok: Avoid This Common Pitfall
Coder Trainee
Coder Trainee
Feb 17, 2026 · Backend Development

Understanding Spring Cache’s @Cacheable Annotation

The article explains how Spring Cache, introduced after Spring 3.1, uses the @Cacheable annotation to declaratively cache method results, detailing each attribute such as cacheNames, key, keyGenerator, and unless, with code examples illustrating key generation and conditional caching.

@CacheableBackend DevelopmentJava
0 likes · 4 min read
Understanding Spring Cache’s @Cacheable Annotation
Code Ape Tech Column
Code Ape Tech Column
Feb 2, 2026 · Backend Development

Mastering Spring Parameter Validation: A Flexible SpEL‑Based Validator

This article introduces a powerful, extensible Spring validation component built on SpEL that handles simple annotations, enum checks, multi‑field logic, and Spring Bean integration, providing step‑by‑step setup, usage examples, custom constraints, and performance considerations for Java backend developers.

BackendJavaSpEL
0 likes · 11 min read
Mastering Spring Parameter Validation: A Flexible SpEL‑Based Validator
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jan 30, 2026 · Backend Development

8 Hidden Hibernate Annotations That Supercharge Spring Boot 3

This guide explores eight lesser‑known Hibernate annotations—such as @EntityGraph, @Formula, @SQLRestriction, @SQLDelete, @JoinFormula, @Cache, @DynamicUpdate/Insert, and @Filter/FilterDef—demonstrating how they improve performance, simplify queries, and enhance data handling in Spring Boot 3 applications for developers.

Backend DevelopmentHibernateSpring Boot
0 likes · 11 min read
8 Hidden Hibernate Annotations That Supercharge Spring Boot 3
macrozheng
macrozheng
Jan 13, 2026 · Backend Development

Master Spring Boot Validation: 10 Essential Tips for Secure APIs

This guide explains why parameter validation is crucial for Spring Boot applications and walks through ten practical techniques—including built‑in annotations, custom constraints, server‑side checks, meaningful error messages, i18n, validation groups, cross‑field validation, exception handling, testing, and client‑side considerations—to help developers build robust, secure APIs.

Custom ConstraintException HandlingSpring Boot
0 likes · 14 min read
Master Spring Boot Validation: 10 Essential Tips for Secure APIs
Woodpecker Software Testing
Woodpecker Software Testing
Dec 28, 2025 · Fundamentals

Mastering JUnit 5: The Modern Java Unit‑Testing Framework

JUnit 5 introduces a modular architecture with Platform, Jupiter, and Vintage, adds a fresh annotation model, dynamic and parameterized tests, tagging, exception assertions, and nested tests, and offers clear advantages over JUnit 4, as demonstrated through a complete Calculator example and Maven execution.

JUnit 5Javaannotations
0 likes · 8 min read
Mastering JUnit 5: The Modern Java Unit‑Testing Framework
Top Architect
Top Architect
Oct 6, 2025 · Backend Development

Designing Clean API Response Wrappers with Annotations and Interceptors

This article explains how to structure API responses in a microservice environment by using a standard JSON format, custom status code ranges, a Result wrapper class, and Spring annotations with interceptors to automatically package and handle responses and errors in a clean, maintainable way.

BackendJSONResponse wrapper
0 likes · 10 min read
Designing Clean API Response Wrappers with Annotations and Interceptors
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 27, 2025 · Backend Development

9 Hidden Spring Boot 3 Annotations That Supercharge Your Apps

This article introduces nine often‑overlooked Spring Boot 3 annotations—including @ConditionalOnExpression, @ConstructorBinding, @EventListener, @Lazy, @EnableConfigurationProperties, @Profile, @Scheduled, @Scope, and @Retryable—explaining their purpose, showing practical code examples, and demonstrating how they improve configuration, immutability, event handling, circular‑dependency resolution, and fault tolerance.

Backend DevelopmentCode ExamplesConfiguration
0 likes · 10 min read
9 Hidden Spring Boot 3 Annotations That Supercharge Your Apps
Code Ape Tech Column
Code Ape Tech Column
Sep 26, 2025 · Backend Development

Why FastJSON Calls isChinaName() During Serialization and How to Fix It

An unexpected NullPointerException occurs when adding a simple log line to a Java DTO, revealing that FastJSON’s serialization process invokes methods like isChinaName(), getXxx(), and isXxx() via ASM-generated serializers, and the article explains the underlying mechanism, common pitfalls, and best‑practice annotations to avoid such bugs.

ASMJavaannotations
0 likes · 7 min read
Why FastJSON Calls isChinaName() During Serialization and How to Fix It
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 9, 2025 · Backend Development

Master Spring Boot 3 Validation: 9 Essential Annotation Techniques

This article walks through Spring Boot 3's powerful annotation‑based parameter validation, covering basic constraints, custom validators, group validation, nested objects, method‑level checks, internationalized messages, programmatic validation, composite annotations, and cross‑field verification with complete code examples.

JavaSpring BootSpring Validation
0 likes · 12 min read
Master Spring Boot 3 Validation: 9 Essential Annotation Techniques
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 3, 2025 · Backend Development

Master Spring Boot 3 JSON Handling: 12 Essential Jackson Annotations with Real‑World Examples

This article walks through the most common Jackson annotations for Spring Boot 3, explaining their purpose, showing concise code samples, and demonstrating the resulting JSON output with screenshots, so developers can confidently handle naming, ignoring, formatting, dynamic properties, and custom serialization in their APIs.

JSONJacksonannotations
0 likes · 11 min read
Master Spring Boot 3 JSON Handling: 12 Essential Jackson Annotations with Real‑World Examples
Architect's Guide
Architect's Guide
Aug 23, 2025 · Backend Development

Eliminate Repetitive Java Code: Design Patterns, Annotations & Mapping Tricks

This article explains why duplicate code harms maintainability and demonstrates three practical techniques—factory/template method patterns, annotation‑driven reflection, and bean‑mapping utilities—to refactor Java backend services and dramatically reduce redundant implementations.

Code RefactoringDesign PatternsJava
0 likes · 23 min read
Eliminate Repetitive Java Code: Design Patterns, Annotations & Mapping Tricks
Java Captain
Java Captain
Aug 22, 2025 · Backend Development

Designing Clean API Responses in Java: From JSON Structure to Global Wrappers

This article explains how to design a standardized JSON response format for Java back‑end APIs, introduces a Result wrapper class, and shows how to automate response wrapping using a custom @ResponseResult annotation, interceptors, and Spring's ResponseBodyAdvice for cleaner, more maintainable code.

BackendJSON responseJava
0 likes · 7 min read
Designing Clean API Responses in Java: From JSON Structure to Global Wrappers
JakartaEE China Community
JakartaEE China Community
Jul 22, 2025 · Backend Development

Understanding MicroProfile OpenAPI Specification 3.0

This article explains the MicroProfile OpenAPI 3.0 specification, covering its architecture, configuration options, core properties, annotation usage, server definitions, programming model, model readers, filters, processing rules, endpoint behavior, and release notes for both 3.0 and earlier versions.

API documentationConfigurationJAX-RS
0 likes · 29 min read
Understanding MicroProfile OpenAPI Specification 3.0
Java Architect Essentials
Java Architect Essentials
Jul 16, 2025 · Backend Development

Master Spring Boot Auto‑Configuration: 4 Layers Every Developer Should Know

This article demystifies Spring Boot's auto‑configuration by breaking it into four layers—annotation composition, loading engine, conditional assembly, and property binding—providing clear explanations, code examples, and common pitfalls to help developers ace interview questions and master backend development.

Backend DevelopmentConditionalJava
0 likes · 6 min read
Master Spring Boot Auto‑Configuration: 4 Layers Every Developer Should Know
Java Tech Enthusiast
Java Tech Enthusiast
Jul 8, 2025 · Backend Development

Master Global Date Formatting in Spring Boot: Simple Tips

This article explains how to achieve consistent date and time formatting in Spring Boot applications by using SimpleDateFormat, configuring Jackson globally with spring.jackson properties, and applying @JsonFormat, @JsonComponent, and @Configuration annotations to handle various Java date types efficiently.

Date FormattingJSONSpring Boot
0 likes · 7 min read
Master Global Date Formatting in Spring Boot: Simple Tips
Java Backend Technology
Java Backend Technology
Jul 7, 2025 · Backend Development

Master Dynamic JSON Fields in Java with @JsonAnyGetter and @JsonAnySetter

This article explains how Jackson's @JsonAnySetter and @JsonAnyGetter annotations let Java classes gracefully handle unknown JSON properties by collecting them into a map during deserialization and emitting them as regular fields during serialization, complete with practical code examples and usage tips.

DeserializationDynamicPropertiesJSON
0 likes · 7 min read
Master Dynamic JSON Fields in Java with @JsonAnyGetter and @JsonAnySetter
macrozheng
macrozheng
Jul 5, 2025 · Backend Development

Why Adding a Simple Log Triggered FastJSON Serialization Errors – A Deep Dive

A recent deployment added a log line that caused FastJSON to invoke unexpected methods during serialization, leading to a NullPointerException; this article reconstructs the scenario, analyzes the FastJSON internals, and offers best‑practice annotations to prevent similar bugs.

Code reviewJavaannotations
0 likes · 7 min read
Why Adding a Simple Log Triggered FastJSON Serialization Errors – A Deep Dive
Java Architect Essentials
Java Architect Essentials
Jul 1, 2025 · Backend Development

How @Validated Simplifies SpringBoot Parameter Validation

This article explains how the @Validated annotation in SpringBoot can automatically enforce request parameter validation, reducing boilerplate code, supporting group validation, and improving code readability and maintainability for backend developers.

BackendJavaSpringBoot
0 likes · 9 min read
How @Validated Simplifies SpringBoot Parameter Validation
Top Architecture Tech Stack
Top Architecture Tech Stack
May 20, 2025 · Backend Development

Global Exception Handling in Spring Boot: Techniques and Code Examples

This article explains how to efficiently handle exceptions in Spring Boot applications by using @ControllerAdvice and @ExceptionHandler annotations, providing step-by-step code examples for custom global exception classes, error response structures, and handling specific exceptions such as business, null pointer, and type conversion errors.

BackendJavaSpringBoot
0 likes · 9 min read
Global Exception Handling in Spring Boot: Techniques and Code Examples
Lin is Dream
Lin is Dream
May 3, 2025 · Backend Development

Master Java Bean Validation: Reduce Redundant Code with JSR‑380 Annotations

This tutorial shows how to use Javax Validator annotations to simplify backend service interfaces, covering basic, collection, date, enum, conditional, group, and custom validations with complete Maven dependencies and example code, plus handling of validation exceptions.

BackendBean ValidationJSR-380
0 likes · 16 min read
Master Java Bean Validation: Reduce Redundant Code with JSR‑380 Annotations
Code Ape Tech Column
Code Ape Tech Column
Apr 27, 2025 · Backend Development

Using easy-data-scope for Dynamic SQL Data Permissions in Spring Boot

This guide demonstrates how to integrate the easy-data-scope library into a Spring Boot project to implement dynamic, annotation‑driven SQL data permissions with MyBatis, covering project setup, dependency configuration, core interfaces, annotation options, and practical query examples.

BackendData PermissionJava
0 likes · 7 min read
Using easy-data-scope for Dynamic SQL Data Permissions in Spring Boot
Java Captain
Java Captain
Apr 27, 2025 · Backend Development

Comprehensive Overview of Spring MVC, Bean, Dependency Injection, Scope, and Spring Boot Annotations

This article provides a detailed guide to the most commonly used Spring and Spring Boot annotations—including MVC mapping annotations, bean registration annotations, dependency injection and scope annotations, as well as conditional configuration annotations—explaining their purposes, key attributes, and example usages for Java backend development.

JavaSpring Bootannotations
0 likes · 12 min read
Comprehensive Overview of Spring MVC, Bean, Dependency Injection, Scope, and Spring Boot Annotations
Java Captain
Java Captain
Apr 21, 2025 · Backend Development

Understanding Java Annotations and Reflection: Built‑in Annotations, Meta‑annotations, Custom Annotations, Class Loading and Runtime Reflection

This article explains Java annotations—including built‑in, meta‑ and custom annotations—covers how they are used in Spring, describes the Java reflection mechanism, class loading process, ways to obtain Class objects, and demonstrates retrieving generic and annotation information at runtime with code examples.

JavaMeta-AnnotationReflection
0 likes · 15 min read
Understanding Java Annotations and Reflection: Built‑in Annotations, Meta‑annotations, Custom Annotations, Class Loading and Runtime Reflection
JD Cloud Developers
JD Cloud Developers
Apr 16, 2025 · Backend Development

Master Spring Cache Annotations: @EnableCaching, @Cacheable, @CachePut, @CacheEvict Explained

This article explains how Spring's caching annotations—@EnableCaching, @Cacheable, @CachePut, and @CacheEvict—work together to simplify cache management, includes Maven dependency setup, configuration class, entity and service code, a full Spring Boot example, test cases, and visual illustrations of cache miss, hit, update, and eviction.

BackendCacheannotations
0 likes · 13 min read
Master Spring Cache Annotations: @EnableCaching, @Cacheable, @CachePut, @CacheEvict Explained
Java Tech Enthusiast
Java Tech Enthusiast
Apr 11, 2025 · Backend Development

Concept‑Download: A Spring Library for Annotation‑Driven File Download

Concept‑Download is a Spring library that lets developers replace verbose, multi‑step file‑download code with a single @Download annotation, automatically handling source loading, optional ZIP compression, and response writing for both MVC and WebFlux via a modular reactive handler chain.

File DownloadJavaannotations
0 likes · 16 min read
Concept‑Download: A Spring Library for Annotation‑Driven File Download
Java Backend Technology
Java Backend Technology
Apr 9, 2025 · Backend Development

Master Spring Annotations: From @RequestMapping to @Conditional – A Complete Backend Guide

This comprehensive guide explains the most common Spring MVC and Spring Boot annotations—including @RequestMapping, @GetMapping, @Autowired, @Component, @Scope, and conditional annotations—detailing their purposes, configuration attributes, and practical code examples to help Java backend developers write cleaner, more maintainable code.

BackendDependencyInjectionSpringBoot
0 likes · 14 min read
Master Spring Annotations: From @RequestMapping to @Conditional – A Complete Backend Guide
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Apr 5, 2025 · Backend Development

Master Spring Boot 3: 110 Real-World Cases and Advanced Configuration Tricks

This article presents a curated collection of 110 Spring Boot 3 practical examples, covering @Profile usage, PropertySource configuration, resource loading, bean validation, and automatic proxy creation, providing developers with hands‑on code snippets and clear explanations to enhance backend development skills.

BackendBean Validationannotations
0 likes · 8 min read
Master Spring Boot 3: 110 Real-World Cases and Advanced Configuration Tricks
Selected Java Interview Questions
Selected Java Interview Questions
Apr 2, 2025 · Backend Development

Implementing Environment-Based Data Isolation in MyBatis with Custom Interceptors and Annotations

This article describes a practical approach to achieve environment-based data isolation in a Java application by adding an 'env' field to tables, using a custom MyBatis interceptor to rewrite SQL, and defining annotations with AOP to control environment filtering, while discussing challenges and refactoring considerations.

Custom InterceptorData IsolationMyBatis
0 likes · 12 min read
Implementing Environment-Based Data Isolation in MyBatis with Custom Interceptors and Annotations
Cognitive Technology Team
Cognitive Technology Team
Mar 31, 2025 · Backend Development

Understanding Spring Boot Annotations and Auto‑Configuration

This article explains how Spring Boot replaces extensive XML configuration with annotation‑driven setup, detailing the purpose and usage of core annotations such as @SpringBootApplication and @EnableAutoConfiguration, as well as conditional annotations like @ConditionalOnClass, @ConditionalOnBean, @ConditionalOnProperty, @Profile, and provides best‑practice recommendations.

JavaSpring Bootannotations
0 likes · 7 min read
Understanding Spring Boot Annotations and Auto‑Configuration
Selected Java Interview Questions
Selected Java Interview Questions
Mar 20, 2025 · Backend Development

Implementing Global Data Desensitization with Hutool and Spring AOP

This article demonstrates how to build a reusable data‑desensitization component in Java by defining custom annotations, extending Hutool's DesensitizedUtil, and creating a Spring AOP aspect that automatically masks sensitive fields in returned objects such as pages, lists, or single entities.

Aspect Oriented Programmingannotationsdata desensitization
0 likes · 7 min read
Implementing Global Data Desensitization with Hutool and Spring AOP
Sohu Tech Products
Sohu Tech Products
Mar 12, 2025 · Mobile Development

Riverpod Annotations Explained: Code Generation and Advanced Usage in Flutter

Riverpod annotations streamline Flutter state management by using build_runner to generate provider code, where @riverpod on functions creates Provider, FutureProvider, or StreamProvider based on return type, on classes creates NotifierProvider, supports Family‑pattern parameters, keepAlive, dependencies, and produces helper classes for auto‑dispose and scoped overrides.

Code GenerationFamilyFlutter
0 likes · 13 min read
Riverpod Annotations Explained: Code Generation and Advanced Usage in Flutter
Architecture Digest
Architecture Digest
Jan 15, 2025 · Backend Development

Advanced Lombok Annotations for Simplifying Java Backend Code

This article demonstrates how Lombok’s advanced annotations such as @RequiredArgsConstructor(onConstructor=@__(@Autowired)), @Delegate, @Cleanup, and the combination of @Builder with @Singular can automatically generate Spring‑compatible constructors, delegate methods, manage resources, and build immutable objects, thereby reducing boilerplate and improving code readability in Java backend development.

Code GenerationJavaLombok
0 likes · 7 min read
Advanced Lombok Annotations for Simplifying Java Backend Code
Open Source Tech Hub
Open Source Tech Hub
Jan 15, 2025 · Backend Development

Customizing Webman Rate Limiter to Return Precise 429 Errors

This guide shows how to configure Webman's rate‑limiter component—both the programmatic and annotation styles—to throw a custom TooManyRequestsHttpException, ensuring a unified JSON response with HTTP 429 status and a clear "maximum 5 messages per day" message for each phone number.

Exception HandlingPHPRate Limiter
0 likes · 6 min read
Customizing Webman Rate Limiter to Return Precise 429 Errors
21CTO
21CTO
Jan 6, 2025 · Backend Development

When Declarative Beats Imperative: Mastering Java Streams and Annotations

Explore the contrast between declarative and imperative programming, dive into Java Stream fundamentals, benchmark parallel versus sequential execution, and understand the role of annotations, offering practical insights for writing cleaner, more efficient backend code.

JavaStreamsannotations
0 likes · 9 min read
When Declarative Beats Imperative: Mastering Java Streams and Annotations
Architect
Architect
Jan 1, 2025 · Backend Development

Six Common Ways to Read Request Parameters in Spring Boot

This article explains six typical techniques—@RequestParam, @PathVariable, @MatrixVariable, @RequestBody, @RequestHeader, and @CookieValue—for extracting request data in Spring Boot APIs, providing usage scenarios and concrete code examples for each method.

APIBackend DevelopmentJava
0 likes · 5 min read
Six Common Ways to Read Request Parameters in Spring Boot
Java Backend Technology
Java Backend Technology
Dec 26, 2024 · Backend Development

Unlock Cleaner Java Code: Master Lombok’s @Delegate, @Cleanup, @Builder & More

Explore how Lombok’s powerful annotations—@onX, @Delegate, @Cleanup, @Singular, and @Builder—can dramatically simplify Java code, enable seamless Spring dependency injection, manage resources automatically, and streamline object construction, while highlighting best practices and potential pitfalls for maintainable backend development.

Code GenerationLombokannotations
0 likes · 8 min read
Unlock Cleaner Java Code: Master Lombok’s @Delegate, @Cleanup, @Builder & More
IT Services Circle
IT Services Circle
Dec 20, 2024 · Backend Development

Best Practices for Parameter Validation in Backend Development

This article outlines ten practical guidelines for robust parameter validation in backend Java services, covering enumeration ranges, consistent length constraints, proper use of @NotBlank, synchronizing API documentation, comprehensive annotation usage, request object encapsulation, and the importance of self‑testing and authorization checks.

Code reviewJavaParameter Validation
0 likes · 8 min read
Best Practices for Parameter Validation in Backend Development
Alibaba Cloud Native
Alibaba Cloud Native
Dec 9, 2024 · Cloud Native

Master Dynamic Nacos Config in Spring Cloud: New @NacosConfig Annotations Explained

This article explains the limitations of using @Value and @ConfigurationProperties for Nacos dynamic configuration in Spring Cloud, introduces the new @NacosConfig, @NacosConfigListener, and @NacosConfigKeysListener annotations, provides detailed usage examples, version upgrade guidance, Maven dependencies, and essential configuration snippets.

ConfigurationNacosSpring Cloud
0 likes · 14 min read
Master Dynamic Nacos Config in Spring Cloud: New @NacosConfig Annotations Explained
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Dec 3, 2024 · Backend Development

Master Advanced Spring Boot 3 Techniques: Output Control, Body Parsing, and Security Context

This article presents a collection of over 50 practical Spring Boot 3 examples, demonstrating how to directly write responses with OutputStream, read request bodies via InputStream, use @Value and SpEL for fixed parameters, combine body and headers with HttpEntity, access security data through @CurrentSecurityContext, and handle Map parameters with @ModelAttribute.

REST APIRequest HandlingSecurity
0 likes · 7 min read
Master Advanced Spring Boot 3 Techniques: Output Control, Body Parsing, and Security Context
Su San Talks Tech
Su San Talks Tech
Dec 1, 2024 · Backend Development

Master Elegant Parameter Validation in Spring Boot with Hibernate Validator

This article explains why manual if‑statement checks are problematic, introduces Spring Boot's built‑in validation using Hibernate Validator annotations, shows how to handle errors globally, and covers advanced techniques such as group validation and custom constraint annotations for clean, maintainable backend code.

Hibernate ValidatorJavaParameter Validation
0 likes · 12 min read
Master Elegant Parameter Validation in Spring Boot with Hibernate Validator
Code Ape Tech Column
Code Ape Tech Column
Nov 30, 2024 · Cloud Native

Implementing Distributed Authentication in Spring Cloud Alibaba Using Custom Annotations

This article demonstrates how to move authentication from the gateway to downstream microservices in a Spring Cloud Alibaba setup by disabling the gateway’s ReactiveAuthorizationManager, defining three custom security annotations, creating an AOP aspect to enforce them, and showing practical usage examples with role‑based access control and Feign calls.

AuthenticationJavaSpring Cloud
0 likes · 9 min read
Implementing Distributed Authentication in Spring Cloud Alibaba Using Custom Annotations
Selected Java Interview Questions
Selected Java Interview Questions
Nov 27, 2024 · Backend Development

Designing a Flexible Permission Control System with Java Annotations and Spring AOP

This article explains how to build a scalable, maintainable permission control framework in Java by defining custom annotations, designing relational database tables, and using Spring AOP to intercept method calls for organization‑level, personal, limit, and special‑role checks, while providing implementation details and best‑practice recommendations.

BackendJavaaccess control
0 likes · 21 min read
Designing a Flexible Permission Control System with Java Annotations and Spring AOP
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Nov 15, 2024 · Backend Development

Spring Boot 3.2.5 New Features: Multithreaded Bean Init, @Fallback, RestClient & More

This article walks through Spring Boot 3.2.5 enhancements including multithreaded bean initialization, the new @Fallback annotation, handling duplicate bean names, RestClient.create(URI) usage, header binding to records, expanded task‑scheduler metadata, and a host of other backend improvements.

Backend DevelopmentRestClientSpring Boot
0 likes · 9 min read
Spring Boot 3.2.5 New Features: Multithreaded Bean Init, @Fallback, RestClient & More
Architecture Digest
Architecture Digest
Nov 5, 2024 · Backend Development

Spring Annotation-Based Development and MyBatis Integration Tutorial

This article explains how Spring 3.0's pure annotation mode simplifies bean configuration, demonstrates using @Component, @Scope, @Autowired, @Qualifier, @Value, and @PropertySource for dependency injection and property loading, and shows step‑by‑step integration of MyBatis with Spring, including required dependencies and configuration classes.

BackendConfigurationJava
0 likes · 8 min read
Spring Annotation-Based Development and MyBatis Integration Tutorial
Alibaba Cloud Developer
Alibaba Cloud Developer
Nov 4, 2024 · Backend Development

Unveiling FastJSON 2.0.31: A Deep Dive into Its Serialization Mechanics

This article provides a comprehensive walkthrough of FastJSON 2.0.31's serialization and deserialization process, covering its core architecture, step‑by‑step execution flow, common pitfalls such as getter misuse and circular references, and practical guidance on annotations and SerializerFeature options.

ASMJavaReflection
0 likes · 20 min read
Unveiling FastJSON 2.0.31: A Deep Dive into Its Serialization Mechanics
Java Tech Enthusiast
Java Tech Enthusiast
Nov 3, 2024 · Backend Development

Using @Service to Replace @Controller in Spring Boot

In Spring Boot, a class annotated with @Service can act as a web controller if it is discovered by component scanning and carries @RequestMapping (or method‑level mapping) annotations, allowing HTTP requests to be handled just like a traditional @Controller‑annotated bean.

ControllerDependencyInjectionJava
0 likes · 7 min read
Using @Service to Replace @Controller in Spring Boot
Java Architect Essentials
Java Architect Essentials
Oct 25, 2024 · Backend Development

Using Lombok Annotations @RequiredArgsConstructor, @Delegate, @Cleanup, @Singular and @Builder in Spring Applications

This article demonstrates how Lombok annotations such as @RequiredArgsConstructor, @Delegate, @Cleanup, @Singular, and @Builder can be combined with Spring components to reduce boilerplate, automatically inject dependencies, manage resources, and build immutable objects, providing practical code examples and usage guidelines.

Code GenerationJavaLombok
0 likes · 7 min read
Using Lombok Annotations @RequiredArgsConstructor, @Delegate, @Cleanup, @Singular and @Builder in Spring Applications
Architect
Architect
Oct 22, 2024 · Backend Development

Simplify Third‑Party HTTP Calls with UniHttp: A Declarative Java Client

This article explains why traditional programmatic HTTP clients cause duplicated, hard‑to‑maintain code in enterprise projects, introduces the UniHttp declarative framework with its annotations, shows a quick‑start guide, details lifecycle hooks for custom processing, and demonstrates an enterprise‑level weather‑service integration example.

Declarative APIHTTP clientJava
0 likes · 20 min read
Simplify Third‑Party HTTP Calls with UniHttp: A Declarative Java Client
macrozheng
macrozheng
Oct 22, 2024 · Backend Development

Can @Service Replace @Controller in Spring Boot? A Deep Dive

This article explores whether the @Service annotation can replace @Controller in Spring Boot, demonstrates a working example, explains the underlying bean registration process, and clarifies how Spring’s component scanning and request mapping enable such unconventional usage.

BackendControllerJava
0 likes · 8 min read
Can @Service Replace @Controller in Spring Boot? A Deep Dive
Architect
Architect
Oct 14, 2024 · Backend Development

Designing a Unified API Response Structure with Status Codes, Annotations, and Interceptors in Spring Boot

This article explains how to create a consistent JSON API response format—including custom status codes, message fields, and a Result wrapper—by using a @ResponseResult annotation, an interceptor, and ResponseBodyAdvice in Spring Boot, while also offering tips for optimization and error handling.

Backend DevelopmentResponse wrapperSpring Boot
0 likes · 7 min read
Designing a Unified API Response Structure with Status Codes, Annotations, and Interceptors in Spring Boot
Top Architect
Top Architect
Sep 5, 2024 · Backend Development

Designing a Unified API Response Structure in Spring Boot with @ResponseResult

This article explains how to standardize API responses in Spring Boot by defining a JSON result format, using custom annotations, interceptors, and ResponseBodyAdvice to automatically wrap controller return values, while also discussing status code design, message handling, and code simplification techniques.

JavaResponse wrapperSpring Boot
0 likes · 10 min read
Designing a Unified API Response Structure in Spring Boot with @ResponseResult
Architect
Architect
Aug 30, 2024 · Backend Development

How to Streamline Contract Signing Using Strategy, Chain‑of‑Responsibility, and Annotations

This article walks through a Java Spring‑Boot implementation of a contract‑signing workflow, explains the original chain‑of‑responsibility design, shows its limitations, and demonstrates how to replace manual bean wiring with a strategy‑based annotation and enum configuration for flexible node management.

Chain of ResponsibilityContract SigningDesign Patterns
0 likes · 15 min read
How to Streamline Contract Signing Using Strategy, Chain‑of‑Responsibility, and Annotations
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Aug 30, 2024 · Backend Development

Master the 9 Essential SpringBoot Annotations for Backend Development

This article provides a concise yet comprehensive guide to the most common SpringBoot annotations—including @SpringBootApplication, @EnableAutoConfiguration, @ComponentScan, @Service, @Repository, @Component, @RestController, @Bean, @ResponseBody, and @Autowired—explaining their purpose, composition, and practical code examples for building robust Java backend applications.

Backend DevelopmentJavaSpringBoot
0 likes · 6 min read
Master the 9 Essential SpringBoot Annotations for Backend Development
Su San Talks Tech
Su San Talks Tech
Aug 23, 2024 · Backend Development

Master SpringBoot Annotations: A Complete Guide to @Controller, @Service, @Repository and More

This article provides a comprehensive overview of SpringBoot’s most commonly used annotations, covering MVC, bean, JPA, configuration, exception handling, and testing annotations, complete with clear explanations and practical code examples to help developers avoid pitfalls and write cleaner code.

Backend DevelopmentJavaSpring MVC
0 likes · 18 min read
Master SpringBoot Annotations: A Complete Guide to @Controller, @Service, @Repository and More
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 22, 2024 · Backend Development

Master Jackson Annotations in Spring Boot 3.2.5: From @JsonAnyGetter to Custom Annotations

This tutorial explores Jackson's rich annotation set in Spring Boot 3.2.5, demonstrating how to serialize and deserialize JSON with built‑in annotations like @JsonAnyGetter, @JsonGetter, @JsonPropertyOrder, and @JsonIgnore, how to create custom annotations, and how to disable annotation processing for fine‑grained control.

DeserializationJSONJackson
0 likes · 13 min read
Master Jackson Annotations in Spring Boot 3.2.5: From @JsonAnyGetter to Custom Annotations
Top Architect
Top Architect
Aug 21, 2024 · Backend Development

Designing a Unified API Response Structure with Custom Annotations and Interceptors

This article explains how to design a clean, unified API response format for backend services by defining a standard JSON wrapper, categorizing status codes, adding descriptive messages, and using custom @ResponseResult annotations together with interceptors and controller advice to automatically wrap and handle responses in a Spring‑based application.

APIJavaResponse wrapper
0 likes · 9 min read
Designing a Unified API Response Structure with Custom Annotations and Interceptors
Top Architect
Top Architect
Aug 3, 2024 · Backend Development

Standardizing API Response Structure with Custom Annotations in Spring Boot

This article explains how to design a unified JSON response format for backend services, define clear status‑code conventions, encapsulate results in a Result class, and use a custom @ResponseResult annotation together with a ResponseBodyAdvice interceptor to automatically wrap controller outputs, improving readability and error handling.

JavaResponse wrapperSpring Boot
0 likes · 10 min read
Standardizing API Response Structure with Custom Annotations in Spring Boot
Selected Java Interview Questions
Selected Java Interview Questions
Jul 31, 2024 · Backend Development

Resolving Lombok @Data and @Builder Conflict: Restoring the No‑Args Constructor

This article explains why combining Lombok's @Data and @Builder annotations can remove the automatically generated no‑args constructor, demonstrates the resulting compilation errors, and provides two practical solutions using @Tolerate or a combination of @RequiredArgsConstructor and @NoArgsConstructor, while also describing Lombok's annotation‑processing mechanism.

BackendBuilderJava
0 likes · 4 min read
Resolving Lombok @Data and @Builder Conflict: Restoring the No‑Args Constructor
DaTaobao Tech
DaTaobao Tech
Jul 22, 2024 · Backend Development

Spring Bean Injection Issues and Dependency Injection Priorities

In a project with two applications, a Tair bean defined via JavaConfig works in one app but fails in the other because Spring’s injection rules prioritize type over name, causing ambiguity; using explicit bean naming with XML, adding @Qualifier, or switching to @Resource resolves the issue.

Bean ConfigurationJavaannotations
0 likes · 12 min read
Spring Bean Injection Issues and Dependency Injection Priorities
Top Architect
Top Architect
Jul 17, 2024 · Backend Development

Designing a Unified API Response Structure with Annotations and Interceptors in Spring Boot

This article explains how to design a unified API response format in Spring Boot, defining a JSON result structure with code, message, and data, organizing status codes, using @ResponseResult annotation, implementing interceptors and ResponseBodyAdvice to automatically wrap controller outputs, and offers optimization tips for clean backend development.

Backend DevelopmentResponse wrapperSpring Boot
0 likes · 10 min read
Designing a Unified API Response Structure with Annotations and Interceptors in Spring Boot
Java Backend Technology
Java Backend Technology
Jul 12, 2024 · Backend Development

Designing a Clean API Response Wrapper in Java Spring

This article explains how to standardize API responses in a micro‑service architecture by defining a JSON result format with code, message, and data fields, using HTTP‑like status code ranges, and automatically wrapping controller outputs with a custom @ResponseResult annotation and Spring's ResponseBodyAdvice.

APIJavaResponse wrapper
0 likes · 8 min read
Designing a Clean API Response Wrapper in Java Spring
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jul 3, 2024 · Backend Development

SpringBoot 3.3: Annotations @ModelAttribute, @SessionAttribute, @RequestAttribute

This article explains the purpose and proper usage of SpringBoot 3.3’s request‑handling annotations—@ModelAttribute, @SessionAttribute, @RequestAttribute—and the RedirectAttributes class, providing detailed code examples, configuration tips, and scenarios where each tool is essential for form submission, session management, and flash‑attribute redirects.

SpringBootWeb Developmentannotations
0 likes · 9 min read
SpringBoot 3.3: Annotations @ModelAttribute, @SessionAttribute, @RequestAttribute
Top Architect
Top Architect
Jun 22, 2024 · Backend Development

Understanding Idempotency and Its Implementation with Custom Annotations in Java

This article explains the concept of idempotency, identifies which HTTP requests are naturally idempotent, discusses why idempotency is essential for retries, async callbacks, and message queues, and demonstrates a practical Java implementation using custom annotations, AOP, and Redis for token management.

IdempotencyJavaannotations
0 likes · 11 min read
Understanding Idempotency and Its Implementation with Custom Annotations in Java
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 19, 2024 · Backend Development

Mastering Spring Boot Annotations: A Comprehensive Guide for Backend Developers

This article provides a thorough overview of Spring Boot's core, web, configuration, dependency injection, AOP, testing, security, transaction, scheduling, event, exception handling, property binding, and conditional annotations, complete with practical code examples for Java backend development.

Backend DevelopmentSpring Bootannotations
0 likes · 12 min read
Mastering Spring Boot Annotations: A Comprehensive Guide for Backend Developers
Top Architect
Top Architect
Jun 14, 2024 · Backend Development

Comprehensive Guide to Spring MVC, Bean, and Boot Annotations

This article provides a detailed overview of Spring MVC request‑mapping annotations, Spring Bean stereotypes, dependency‑injection and scope annotations, as well as Spring Boot conditional and lifecycle annotations, complete with code examples and usage tips for Java backend development.

JavaSpring BootSpring MVC
0 likes · 16 min read
Comprehensive Guide to Spring MVC, Bean, and Boot Annotations
Selected Java Interview Questions
Selected Java Interview Questions
May 26, 2024 · Backend Development

Comprehensive Guide to Spring Boot Annotations

This article provides a detailed overview of the most commonly used Spring Boot annotations, covering core, prototype, Spring Boot, Spring Cloud, caching, testing, database access, JPA, and global exception handling annotations, with clear explanations and practical Java code examples for each.

Backend DevelopmentJavaSpring Boot
0 likes · 17 min read
Comprehensive Guide to Spring Boot Annotations
Architecture Digest
Architecture Digest
May 14, 2024 · Backend Development

FastJSON Serialization Mechanism and How to Control Method Invocation

This article analyzes a FastJSON serialization issue where a getter method is unexpectedly invoked, explains the underlying ASM-generated serializer workflow, details which methods are considered during serialization, and provides best‑practice code annotations to prevent unwanted method execution.

ASMJavaannotations
0 likes · 6 min read
FastJSON Serialization Mechanism and How to Control Method Invocation
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Apr 30, 2024 · Backend Development

Mastering Spring AOP: XML, Annotations, and ProxyFactoryBean Deep Dive

This article explains Spring AOP fundamentals, demonstrates XML‑based and annotation‑based configurations, and provides a comprehensive guide to using ProxyFactoryBean—including its properties, proxy‑interface and proxy‑class scenarios, CGLIB considerations, and wildcard interceptor matching—complete with runnable code examples.

ProxyFactoryBeanXMLannotations
0 likes · 9 min read
Mastering Spring AOP: XML, Annotations, and ProxyFactoryBean Deep Dive