【Spring&SpringBoot】注解梳理(含自定义)
参考:https://www.baeldung.com/tag/spring-annotations/ 按不同维度介绍了注解
>> Spring Conditional Annotations
>> AliasFor Annotation in Spring
>> Spring @EntityScan vs. @ComponentScan
>> Spring @Component Annotation
>> Where Should the Spring @Service Annotation Be Kept?
>> Difference Between @ComponentScan and @EnableAutoConfiguration in Spring Boot
>> Differences in @Valid and @Validated Annotations in Spring
>> Guide to @DynamicPropertySource in Spring
>> The Spring @ConditionalOnProperty Annotation
>> Spring @RequestParam Annotation
>> Spring @RequestParam vs @PathVariable Annotations
>> Testing Spring Boot @ConfigurationProperties
>> Guide to @SpringBootConfiguration in Spring Boot
>> The Spring @Qualifier Annotation
>> Guide to @EnableConfigurationProperties
>> Spring Null-Safety Annotations
>> @Component vs @Repository and @Service in Spring
>> Controlling Bean Creation Order with @DependsOn Annotation
>> @Lookup Annotation in Spring
>> The Spring @Controller and @RestController Annotations
>> A Quick Guide to the Spring @Lazy Annotation
>> The SpringJUnitConfig and SpringJUnitWebConfig Annotations in Spring 5
>> Spring 5 Testing with @EnabledIf Annotation
>> Spring’s RequestBody and ResponseBody Annotations
>> Quick Guide to the Spring @Enable Annotations
>> Guide to @ConfigurationProperties in Spring Boot
>> A Quick Guide to Spring @Value
>> Implementing a Custom Spring AOP Annotation
>> The @ServletComponentScan Annotation in Spring Boot
>> Spring @RequestMapping New Shortcut Annotations
>> Spring MVC and the @ModelAttribute Annotation
>> A Spring Custom Annotation for a Better DAO
>> Spring Data MongoDB – Indexes, Annotations and Converters
Spring Core注解:
@ComponentScan scans for annotated Spring components -- 对应spring,扫描service、controller等
@EnableAutoConfiguration is used to enable the auto-configuration --- 对应springboot,自动发现和注册bean
属性读取:

通过如下方式,注册Java Bean;或通过下面的EnableConfigurationProperties实现
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· .NET10 - 预览版1新功能体验(一)
2019-12-10 【分布式事务】基本原理(含不同模式的简单对比)