Tag

custom annotations

0 views collected around this technical thread.

macrozheng
macrozheng
Oct 18, 2024 · Backend Development

Master Spring Boot Validation: 10 Essential Tips and Custom Techniques

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.

JSR-303JavaSpring Boot
0 likes · 17 min read
Master Spring Boot Validation: 10 Essential Tips and Custom Techniques
Code Ape Tech Column
Code Ape Tech Column
May 7, 2024 · Backend Development

SpEL Validator: A Comprehensive Parameter Validation Component for Java Backend

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.

BackendJavaParameter Validation
0 likes · 12 min read
SpEL Validator: A Comprehensive Parameter Validation Component for Java Backend
Java Captain
Java Captain
Mar 7, 2024 · Backend Development

How Spring Scans and Registers Custom Annotations

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.

Component ScanJavaSpring
0 likes · 5 min read
How Spring Scans and Registers Custom Annotations
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Nov 7, 2023 · Backend Development

Master Spring Validation in Spring Boot 2.6: From Basics to Custom Annotations

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 ValidationJavaSpring Boot
0 likes · 8 min read
Master Spring Validation in Spring Boot 2.6: From Basics to Custom Annotations
Code Ape Tech Column
Code Ape Tech Column
Apr 17, 2023 · Backend Development

Implementing Microservice-Level Authorization with Custom Annotations in Spring Cloud Alibaba

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.

BackendJavaSpring Cloud
0 likes · 9 min read
Implementing Microservice-Level Authorization with Custom Annotations in Spring Cloud Alibaba
Architecture & Thinking
Architecture & Thinking
Jul 19, 2022 · Backend Development

Master Java Annotations: From Basics to Custom Usage

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.

AnnotationsJavaMeta‑annotations
0 likes · 22 min read
Master Java Annotations: From Basics to Custom Usage
Selected Java Interview Questions
Selected Java Interview Questions
Jun 12, 2022 · Fundamentals

Understanding Java Annotations: Concepts, Built‑in Annotations, Custom Annotations, and a Simple Test Framework

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.

AnnotationsJavaJavadoc
0 likes · 11 min read
Understanding Java Annotations: Concepts, Built‑in Annotations, Custom Annotations, and a Simple Test Framework
Code Ape Tech Column
Code Ape Tech Column
May 31, 2022 · Backend Development

Implementing Distributed Authorization in Spring Cloud Microservices with Custom Annotations

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.

BackendJavaSpring Cloud
0 likes · 9 min read
Implementing Distributed Authorization in Spring Cloud Microservices with Custom Annotations
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Mar 6, 2022 · Fundamentals

Comprehensive Guide to Java Annotations (Detailed)

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.

AnnotationsJavaMeta‑annotations
0 likes · 8 min read
Comprehensive Guide to Java Annotations (Detailed)
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Nov 17, 2020 · Backend Development

Using Custom Annotations and AOP for Logging and Parameter Validation in Spring

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.

AOPHibernate ValidatorJava
0 likes · 13 min read
Using Custom Annotations and AOP for Logging and Parameter Validation in Spring
Top Architect
Top Architect
Sep 26, 2020 · Backend Development

Building a Mini Spring MVC Framework from Scratch Using Pure JDK

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.

JavaServletSpring MVC
0 likes · 5 min read
Building a Mini Spring MVC Framework from Scratch Using Pure JDK
Java Captain
Java Captain
Aug 21, 2020 · Backend Development

Creating Custom Annotations for Validation, Permission, and Caching in Java Backend Development

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 ProgrammingJavaSpring
0 likes · 9 min read
Creating Custom Annotations for Validation, Permission, and Caching in Java Backend Development
Java Captain
Java Captain
Sep 16, 2018 · Backend Development

Building a Mini Spring MVC Framework from Scratch Using Pure JDK

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.

BackendDispatcherServletJava
0 likes · 8 min read
Building a Mini Spring MVC Framework from Scratch Using Pure JDK