当前位置:网站首页>@RequiredArgsConstructor注解使用
@RequiredArgsConstructor注解使用
2022-07-23 05:46:00 【北海怪兽Monster】
记录---------------------
@RequiredArgsConstructor注解
在之前的项目里使用 mapper DAO , 都是使用@Autowired 进行注入
要是注入多了,每个都要写,就很麻烦。
现在将@RequiredArgsConstructor 注解作用在类上,那么你在注入的时候,就只管写,不用再进行注入了。但是必须使用final修饰。

边栏推荐
猜你喜欢

二叉树基础oj练习-

Hcip--- BGP related configuration

Three versions and optimization of quick sorting by interval -- friends may not know it

C语言基础练习题初学者可参考

HCIP---BGP相关配置(联邦篇)

二叉树的实现-c
![[memory understand the difference and function between ram flash and EEPROM memory]](/img/71/c9ada89e0a876e0581a7b5ceec2bff.png)
[memory understand the difference and function between ram flash and EEPROM memory]

5.4 installation and use of pyinstaller Library

Blog building 4: how to add your blog to Baidu and Google

Basic OJ exercise of binary tree-
随机推荐
hot 100 动态规划
数组 LeetCode977. 有序数组的平方
Blog building I: Framework selection
二叉树的实现-c
Implementation of heap and heap sorting
剑指 Offer做题总结
桌面远程协议-编解码
B树 和 B+树
C#(CSharp) 微信公众号开发一 基本配置
理解不能的锁们
浅析UDP协议和TCP协议
linkerd服务网格调研笔记
unity3d:向量计算,AOE图形相交
前缀和 LeetCode2100. 适合打劫银行的日子
Summary of video coding and decoding related data
Basic OJ exercise of binary tree-
Simply realize the function of stack
[AUTOSAR com 2. Advanced introduction to communication protocol stack]
Implementation of binary tree -c
0数组 LeetCode605. 种花问题