spring注解整理

注解大全:

@AllArgsConstructor:

lombok的注解之一,生成包含全部参数的构造方法;

https://www.cnblogs.com/java-arthur/p/10932201.html

​@AutoWired :简单理解成,可以减少构造函数减少set get 方法

https://www.cnblogs.com/fnlingnzb-learner/p/9723834.html

https://wiki.jikexueyuan.com/project/spring/annotation-based-configuration/spring-autowired-annotation.html

https://www.w3cschool.cn/wkspring/rw2h1mmj.html

@Bean:Spring的@Bean注解用于告诉方法,产生一个Bean对象,然后这个Bean对象交给Spring管理。产生这个Bean对象的方法Spring只会调用一次,随后这个Spring将会将这个Bean对象放在自己的IOC容器中。

https://www.cnblogs.com/cxuanBlog/p/11179439.html

https://www.cnblogs.com/feiyu127/p/7700090.html

@Component:

https://www.jianshu.com/p/8d3f5cede6bf

https://www.cnblogs.com/lyjing/p/8427832.html

@Configuration

https://www.cnblogs.com/zjdxr-up/p/14058667.html

https://www.jianshu.com/p/721c76c1529c

@ConditionOnExpression

https://www.cnblogs.com/itniwota/p/13187624.html

@EnableConfigurationProperties:

https://blog.csdn.net/zhlin110228323/article/details/104351639

@EnableAsync:spring的多线程注解

https://blog.csdn.net/hy_coming/article/details/93885115

https://blog.csdn.net/qq_38796327/article/details/90599867

https://www.cnblogs.com/hsug/p/13303018.html

@EnableScheduling:在配置类上使用,开启计划任务的支持

https://blog.csdn.net/u014252478/article/details/85231069

@EqualsAndHashCode:

https://blog.csdn.net/c851204293/article/details/96989512

@interface:

https://blog.csdn.net/qq_28289405/article/details/81358000

https://www.cnblogs.com/sfnz/p/14171120.html

@JasonInclude

https://blog.csdn.net/weixin_37380784/article/details/101441982

@NoargsConsturctor:

默认生成无参构造方法;

@PathVariable

https://blog.csdn.net/sswqzx/article/details/84194979

 通过 @PathVariable 可以将URL中占位符参数{xxx}绑定到处理器类的方法形参中@PathVariable(“xxx“) 

@PostMapping

https://www.jdon.com/springboot/requestmap.html

@PostConstruct

https://blog.csdn.net/qq360694660/article/details/82877222

@Profile:

https://blog.csdn.net/weixin_43108539/article/details/90044758

@Qualifier:可以用来指定要装配的bean的名称;

https://blog.csdn.net/qiuz1024/article/details/100530260

https://blog.csdn.net/qq_36567005/article/details/80611139

https://blog.csdn.net/fuzhanzhan/article/details/108122744

@RequestMapping

https://blog.csdn.net/renanrenan/article/details/84654362/

@RequestArgsConstructor:注解@NoArgsConstructor后会 生成无参的构造方法,@RequiredArgsConstructor会将类的每一个final字段或者non-null字段生成一个构造方法 ,@AllArgsConstructor 生成一个包含过所有字段的构造方法。

https://blog.csdn.net/a88328734/article/details/108147670

https://www.cnblogs.com/ch3ny/p/13901715.html

@RequestBody:

@Resource 注解:

和AutoWired的区别:https://blog.csdn.net/sinat_21843047/article/details/108639610;

https://zhuanlan.zhihu.com/p/265982399

@RocketMQMessageListener:

https://blog.csdn.net/u010351766/article/details/106080468

@Schedule

定时任务类:

https://cloud.tencent.com/developer/article/1482994;

https://www.icode9.com/content-4-649999.html

https://blog.csdn.net/ysp_0607/article/details/71430281

@service

https://www.cnblogs.com/mstk/p/6358848.html

https://www.jb51.net/article/107382.htm

https://blog.csdn.net/u012934325/article/details/105036255

@Slf4j:日志打印

https://www.jianshu.com/p/6e137ee836a1

@SpringBootApplication:

https://blog.csdn.net/qq_28289405/article/details/81302498

@Value

某种程度上,可以简单地认为就是用来依赖注入的注解;

https://www.cnblogs.com/wangbin2188/p/9014837.html

@Valid:

https://blog.csdn.net/weixin_38118016/article/details/80977207

pom文件中的dependencies和dependencymanagement区别:

https://www.jianshu.com/p/0756404b4b71

https://www.jb51.net/article/159250.htm

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值