---
title: "Discussion on \"Spring注解的内部工作原理\" | Hashnode"
description: "Discussion on \"Spring注解的内部工作原理\". 注解工作原理\n注解本身只是元数据，即描述数据的数据，被描述的数据可以是类、方法、属性、参数、构造器等。注解仅是标记本身没有任何可执行的功能代码，但是我们只要标注了注解，我们就能得到想要的功能，这是怎么做到的呢？我们理解肯定是有某处代码根据我们标注的注解找到我们注解的类、方法、属性、参数等数据本身，并根据注解本身的含义以及注解属性里的内容执行功能代码。\n第一种：BeanPostProcessor\nBeanPostProcessor实现中有一类名称为*AnnotationBeanPostProces..."
url: "https://hashnode.com/posts/how-spring-annotations-work-inside/6327db2b7ae3b59ef006754e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Spring注解的内部工作原理](https://wisely.top/how-spring-annotations-work-inside?utm_source=hashnode&utm_medium=feed)

注解工作原理 注解本身只是元数据，即描述数据的数据，被描述的数据可以是类、方法、属性、参数、构造器等。注解仅是标记本身没有任何可执行的功能代码，但是我们只要标注了注解，我们就能得到想要的功能，这是怎么做到的呢？我们理解肯定是有某处代码根据我们标注的注解找到我们注解的类、方法、属性、参数等数据本身，并根据注解本身的含义以及注解属性里的内容执行功能代码。 第一种：BeanPostProcessor BeanPostProcessor实现中有一类名称为\*AnnotationBeanPostProces...

Sep 19, 2022 · 2 min read · wisely.top  
Updated Sep 20, 2022  
Read the article

-   [#spring-framework](https://hashnode.com/tag/spring-framework)

## Written by

[yunfei wang](https://hashnode.com/@wiselyman)

@wiselyman · CN

  
[View profile](https://hashnode.com/@wiselyman)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
