Tagged articles
Custom Annotations
19 articles · Page 1 of 1
This guide explains common scenarios for using custom Java annotations—such as logging, permission control, data validation, and caching—and walks through the step-by-step process of defining an annotation, applying it in Spring services, handling it with an AOP aspect, and testing the implementation in a Spring Boot application.
AOPCustom AnnotationsJava
0 likes · 7 min read

This article presents ten practical techniques—including built‑in annotations, custom constraints, server‑side checks, internationalized messages, validation groups, cross‑field rules, exception handling, testing, and client‑side considerations—to help developers implement robust validation in Spring Boot applications.
Custom AnnotationsJSR-303Java
0 likes · 17 min read

This article introduces a powerful Java parameter‑validation library based on Spring Expression Language, explains its features, supported annotations, usage examples, configuration steps, and how to extend it with custom constraints, providing a complete guide for backend developers.
BackendCustom AnnotationsJava
0 likes · 12 min read

This article explains how the Spring framework discovers and registers custom annotations by using @ComponentScan, ClassPathScanningCandidateComponentProvider, and TypeFilter mechanisms, guiding developers to configure package scanning, apply meta‑annotations, and optionally implement custom filters for flexible bean management.
Custom AnnotationsJavaSpring
0 likes · 5 min read

This guide explains Spring Validation in Spring Boot 2.6, covering its lightweight features, configuration of Bean Validation providers, injection of validators, practical examples, custom annotation creation, method‑level validation, and additional configuration options with clear code samples.
Bean ValidationCustom AnnotationsJava
0 likes · 8 min read

Learn how to implement both simple parameter checks and complex business rule validations in SpringBoot by leveraging Bean Validation, creating custom annotations like @UniqueUser and @NotConflictUser, and integrating them seamlessly into controllers to ensure data integrity and reduce boilerplate logic.
Bean ValidationBusiness Rule ValidationCustom Annotations
0 likes · 9 min read

This article explains how to move authentication from the gateway to individual Spring Cloud microservices by defining three custom annotations and an AOP aspect, while also covering Feign‑based calls and providing practical code examples for implementation.
AOPAuthenticationCustom Annotations
0 likes · 9 min read

This article explains how to shift authentication and authorization from the gateway to downstream microservices in a Spring Cloud Alibaba environment by removing the gateway's ReactiveAuthorizationManager, creating three custom annotations (@RequiresLogin, @RequiresPermissions, @RequiresRoles), defining an AOP aspect to enforce them, and demonstrating their usage with Feign calls.
Custom Annotationsspring-cloudspring-security
0 likes · 9 min read

This article provides a comprehensive guide to Java annotations, covering built‑in annotations, meta‑annotations, retention policies, repeatable annotations, and how to create and apply custom annotations with reflection and AOP for practical use cases.
AnnotationsCustom AnnotationsJava
0 likes · 22 min read

This article explains the purpose and syntax of Java annotations, describes built‑in annotations such as @Override, @Deprecated and @SuppressWarnings, shows how to create and use custom annotations with meta‑annotations, and demonstrates a lightweight testing framework that records annotation‑driven test failures.
AnnotationsCustom Annotationsjavadoc
0 likes · 11 min read

This article explains how to shift authentication and authorization from the gateway to downstream Spring Cloud microservices by removing the gateway's ReactiveAuthorizationManager, defining three custom annotations (@RequiresLogin, @RequiresPermissions, @RequiresRoles), creating an AOP aspect to enforce them, and demonstrating their usage in controller methods.
BackendCustom AnnotationsJava
0 likes · 9 min read

This article provides an in‑depth overview of Java annotations, covering their definition, common applications, built‑in standard annotations, meta‑annotations, functional interfaces, and step‑by‑step instructions for creating and using custom annotations with complete code examples.
AnnotationsCustom AnnotationsJava
0 likes · 8 min read

Java annotations, introduced in Java 5, provide a metadata mechanism to associate information with program elements, enabling documentation generation, compile‑time checks, and runtime processing; this guide explains their purpose, underlying principles, meta‑annotations, common built‑in annotations, and demonstrates how to define and use custom annotations with full code examples.
AnnotationsCustom AnnotationsJava
0 likes · 12 min read

This article explains how to create and use custom Java annotations together with Spring AOP to implement unified logging, method‑level parameter validation, and other cross‑cutting concerns, providing practical code examples and best‑practice recommendations for backend developers.
AOPCustom AnnotationsHibernate Validator
0 likes · 13 min read

This article walks through creating a lightweight Spring MVC‑like framework by setting up a clean web project, defining custom annotations, implementing a DispatcherServlet that scans packages, instantiates beans, performs dependency injection, maps URLs to controller methods, and finally runs the application without any Spring dependencies.
Custom AnnotationsJavaServlet
0 likes · 5 min read

This article explains how to design and implement custom Java annotations for field validation, permission checks, and caching, covering annotation definitions, target and retention policies, validator classes, interceptor and aspect implementations, and practical usage examples within Spring MVC.
Aspect-Oriented ProgrammingCustom AnnotationsJava
0 likes · 9 min read

This guide explains how to use IntelliJ IDEA's built‑in TODO feature, customize TODO patterns, filter and group tasks, and leverage live templates to efficiently track and manage code annotations across large projects.
Custom AnnotationsIntelliJ IDEATODO
0 likes · 5 min read

This article explains what Java annotations are, why they were introduced, how they work, how to create and use custom annotations with reflection, and demonstrates their practical applications in popular frameworks and Oracle ADF.
AnnotationsCustom AnnotationsFrameworks
0 likes · 12 min read

This tutorial walks through creating a miniature Spring MVC framework using only the JDK, covering custom annotations, package scanning, component instantiation, dependency injection, URL mapping, and a custom DispatcherServlet, with complete code structure and runtime demonstration.
BackendCustom AnnotationsDispatcherServlet
0 likes · 8 min read
