当前位置:网站首页>@Requiredargsconstructor annotation
@Requiredargsconstructor annotation
2022-07-28 04:02:00 【Chen dada's expectation】
Today, in the process of development, I found that service Layer using @Autowried Annotation injection Mapper There was a red hot issue , Although it does not affect the operation of the program , But it looks bad . I used to be Mapper Add annotation to layer @Repository To solve this problem , But today I saw someone else's project used lombok Rely on the provided @RequiredArgsConstructor Annotation to solve this problem , And I think it's better than using @Autowried Better annotation
But in use @RequiredArgsConstructor When the annotation , When you need to inject mapper You must use final To modify .


边栏推荐
- Recursion and non recursion are used to calculate the nth Fibonacci number respectively
- LightPicture – 精致图床系统
- [MySQL database] index and transaction (often used in interview)
- In the official online CV2 document, check the optional values of OpenCV specific parameters
- Ch340 RTS DTR pin programming drives OLED
- 数据挖掘-01
- Machine learning 07: Bayesian learning
- Greedy - 53. Maximum subarray sum
- 金仓数据库KingbaseES安全指南--4 数据访问保护
- 常用的接口测试工具
猜你喜欢

Simple and easy-to-use performance testing tools recommended
![[leetcode] 34. Find the first and last positions of elements in the sorted array](/img/f0/3eaa33fa7b13abe5f27b136239507d.png)
[leetcode] 34. Find the first and last positions of elements in the sorted array

Advanced Mathematics (Seventh Edition) Tongji University exercises 3-6 personal solutions

UBI read only file system

Combination of Oracle and Premier League statistics and presentation

What technical capabilities should a qualified software testing engineer have?

Common interface testing tools

【无标题】

Selenium--WEB自动化测试工具

Appnium--APP自动化测试工具
随机推荐
Prefix-Tuning: Optimizing Continuous Prompts for Generation
Leetcode 0140. word splitting II
C语言:求一个整数存储在内存中的二进制中1的个数
[openvx] VX for basic use of objects_ distribution
离职前一定要做好这7件事情,少一件都很麻烦。
My creation anniversary
CV2. Threshold(), CV2. Findcontours(), CV2. Findcontours image contour processing
Implementation of online rental system based on SSM
Greed 45. Jumping game II
[prototype and prototype chain] get to know prototype and prototype chain~
Screenshot of deepstream detection results
基于SSM实现在线租房系统
Monotonic stack - 739. Daily temperature
MySQL是怎么保证高可用的
ServletContext、request、response
numeric_ Limits the range and related attributes of each data type learned
Recursion and non recursion are used to calculate the nth Fibonacci number respectively
【无标题】
RT-Thread改变打印串口(在BSP的基础上添加其他功能)
ServletContext、request、response