Tag

Annotations

1 views collected around this technical thread.

Java Architect Essentials
Java Architect Essentials
Jun 10, 2025 · Backend Development

Master Spring Boot Annotations: From @RequestMapping to @Conditional

This comprehensive guide explains the most common Spring Boot annotations—including request mapping, bean definitions, dependency injection, scopes, and auto‑configuration—providing clear examples and usage tips for Java backend developers.

AnnotationsBackend DevelopmentJava
0 likes · 15 min read
Master Spring Boot Annotations: From @RequestMapping to @Conditional
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.

AnnotationsExceptionHandlingJava
0 likes · 9 min read
Global Exception Handling in Spring Boot: Techniques and Code Examples
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 19, 2025 · Backend Development

Master Spring Boot 3: Real‑World @Lookup, @DeclareParents, @Timed & More

This article presents a curated collection of practical Spring Boot 3 examples, demonstrating how to use the @Lookup, @DeclareParents, @Timed/@Counted, and @ConfigurationPropertiesBinding annotations with complete code snippets, configuration steps, and runtime results for backend developers.

AnnotationsJavaMicrometer
0 likes · 9 min read
Master Spring Boot 3: Real‑World @Lookup, @DeclareParents, @Timed & More
Java Captain
Java Captain
May 9, 2025 · Backend Development

Configuring MyBatis Dynamic SQL with XML and Annotation: Setup, Code Samples, and Pros & Cons

This article explains how to configure MyBatis for dynamic SQL using XML mapper files and annotation-based methods, provides step‑by‑step code examples, and compares the advantages and disadvantages of each approach to help developers choose the best solution for their projects.

AnnotationsDynamic SQLJava
0 likes · 5 min read
Configuring MyBatis Dynamic SQL with XML and Annotation: Setup, Code Samples, and Pros & Cons
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.

AnnotationsData 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.

AnnotationsBackend DevelopmentJava
0 likes · 12 min read
Comprehensive Overview of Spring MVC, Bean, Dependency Injection, Scope, and Spring Boot Annotations
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Apr 24, 2025 · Backend Development

Mastering JPA with @Formula, @SQLRestriction, and @Filter in Spring Boot 3

This article explains how three Hibernate annotations—@Formula, @SQLRestriction (or @Where), and @Filter—solve common JPA pain points such as scattered query logic, duplicated calculations, and hard‑coded filters, providing code‑reduction, better performance, and easier maintenance in Spring Boot 3 projects.

AnnotationsBackend DevelopmentDynamic Queries
0 likes · 8 min read
Mastering JPA with @Formula, @SQLRestriction, and @Filter in Spring Boot 3
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.

AnnotationsClassLoaderJava
0 likes · 15 min read
Understanding Java Annotations and Reflection: Built‑in Annotations, Meta‑annotations, Custom Annotations, Class Loading and Runtime Reflection
JD Tech Talk
JD Tech Talk
Apr 16, 2025 · Backend Development

Using Spring Cache Annotations for Efficient Redis‑Backed Caching in Java Applications

This article explains how to use Spring's built‑in cache annotations such as @EnableCaching, @Cacheable, @CachePut, and @CacheEvict to implement Redis‑backed caching in a Spring Boot application, covering configuration, core code, testing, and practical considerations for cache consistency and expiration.

AnnotationsCacheJava
0 likes · 16 min read
Using Spring Cache Annotations for Efficient Redis‑Backed Caching in Java Applications
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.

AnnotationsJavaReactive
0 likes · 16 min read
Concept‑Download: A Spring Library for Annotation‑Driven File Download
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Apr 11, 2025 · Backend Development

Master Multi‑Level Caching in Spring Boot 3 with Custom Annotations

Learn how to boost Spring Boot 3 application performance by implementing a multi‑level cache that combines local and Redis storage, using custom @MultiLevelCache annotations and AOP aspects, complete with cache clearing mechanisms, code examples, and testing instructions.

AOPAnnotationsCache
0 likes · 10 min read
Master Multi‑Level Caching in Spring Boot 3 with Custom Annotations
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.

AnnotationsBean ValidationConfiguration
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.

AOPAnnotationsCustom Interceptor
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.

AnnotationsAuto‑ConfigurationJava
0 likes · 7 min read
Understanding Spring Boot Annotations and Auto‑Configuration
Architect's Guide
Architect's Guide
Mar 30, 2025 · Backend Development

Design and Implementation of a Unified Log Recording Framework for Java Backend Systems

This article introduces a unified log recording solution for Java backend services, covering the background need, expected UI effects, database schema, core principles, detailed annotation and service implementations, and multiple usage scenarios including simple log objects, inheritance, and nested objects.

AnnotationsCode ExampleJava
0 likes · 11 min read
Design and Implementation of a Unified Log Recording Framework for Java Backend Systems
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Mar 28, 2025 · Backend Development

Master Spring Boot Configuration: 110 Real-World Cases & Advanced Annotation Techniques

This article introduces a free Spring Boot 3 ebook with 110 practical cases and explains the configuration file loading order, then demonstrates how to use @Value, @ConfigurationProperties, @PropertySource, EnvironmentPostProcessor and other techniques with clear code examples.

AnnotationsBackend DevelopmentConfiguration
0 likes · 8 min read
Master Spring Boot Configuration: 110 Real-World Cases & Advanced Annotation Techniques
Top Architecture Tech Stack
Top Architecture Tech Stack
Mar 23, 2025 · Backend Development

Design and Implementation of a Flexible Download Library for Spring Applications

This article explains how to build a Spring‑based download library that uses annotations to simplify downloading files, HTTP resources, or custom objects, supports both WebMvc and WebFlux, handles concurrency, compression, and event‑driven logging, and provides a modular architecture for extensibility.

AnnotationsJavaReactive
0 likes · 15 min read
Design and Implementation of a Flexible Download Library for Spring Applications
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.

AnnotationsAspect-Oriented ProgrammingData Desensitization
0 likes · 7 min read
Implementing Global Data Desensitization with Hutool and Spring AOP
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Mar 16, 2025 · Backend Development

Master Spring Boot 3 Parameter Validation with Real‑World Code Examples

This article introduces annotation‑based parameter validation in Spring Boot 3, explains built‑in constraints, shows how to use @Valid and @Validated in controllers, and provides multiple practical code snippets—including record types, error handling, collection validation, and return‑value checks—along with screenshots of validation errors.

AnnotationsBackend DevelopmentJava
0 likes · 7 min read
Master Spring Boot 3 Parameter Validation with Real‑World Code Examples
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.

AnnotationsCode GenerationFamily
0 likes · 13 min read
Riverpod Annotations Explained: Code Generation and Advanced Usage in Flutter