当前位置:网站首页>Using the OAP aspect causes the controller to be called repeatedly
Using the OAP aspect causes the controller to be called repeatedly
2022-07-25 20:41:00 【Lost in the forest ~ deer】
Use oap Caused by section controller Called repeatedly
background :
I found a strange problem during the self-test , A variable should have been added 1 Of becomes plus 2,debug I found all controller Have been called twice , The method inside has also been implemented twice
reason :
Later, after investigation, it was found that when writing facets , Called twice in the surround notification joinPoint.proceed()
joinPoint.proceed(): Execute target method target method
Defined tangent :
@Pointcut("execution(public * .......controller.*.*(..))")
You can see execution The expression defines all controller package , And change all methods of all classes under the package ,joinPoint.proceed()
resolvent :
Modify the original logic only once joinPoint.proceed()
边栏推荐
- Leetcode-6129: number of all 0 subarrays
- leetcode-6125:相等行列对
- Leetcode-6130: designing digital container systems
- MySQL inserts three tables with different values. The association condition is the primary foreign key. How about the syntax of the insertion statement?
- leetcode-79:单词搜索
- Arrow 之 Parquet
- Remote - basic principle introduction
- Interpretation of filter execution sequence source code in sprigboot
- 【TensorRT】动态batch进行推理
- [today in history] July 19: the father of IMAP agreement was born; Project kotlin made a public appearance; New breakthroughs in CT imaging
猜你喜欢
![[today in history] July 2: BitTorrent came out; The commercial system linspire was acquired; Sony deploys Playstation now](/img/7d/7a01c8c6923077d6c201bf1ae02c8c.png)
[today in history] July 2: BitTorrent came out; The commercial system linspire was acquired; Sony deploys Playstation now
![[MCU] 51 MCU burning those things](/img/fa/8f11ef64a18114365c084fff7d39f6.png)
[MCU] 51 MCU burning those things

leetcode-79:单词搜索

【NOI模拟赛】字符串匹配(后缀自动机SAM,莫队,分块)

Fanoutexchange switch code tutorial
![[today in history] July 8: PostgreSQL release; SUSE acquires the largest service provider of k8s; Activision Blizzard merger](/img/14/f2b68dbe4e6a9b8d89ed9ff38f5e11.png)
[today in history] July 8: PostgreSQL release; SUSE acquires the largest service provider of k8s; Activision Blizzard merger

【TensorRT】动态batch进行推理

leetcode-6127:优质数对的数目

程序的编译和运行

Yolov7 training error indexerror: list index out of range
随机推荐
Myormframeworkjdbc review and problem analysis of user-defined persistence layer framework, and thought analysis of user-defined persistence layer framework
Increase swap space
【TensorRT】trtexec工具转engine
Jmeter——接口测试
Aircraft PID control (rotor flight control)
How to obtain the subordinate / annotation information of KEGG channel
Key network protocols in tcp/ip four layer model
Leetcode-6129: number of all 0 subarrays
【单细胞高级绘图】07.KEGG富集结果展示
Use of C log4net: add file name and line number to the output log content; Repackaged class output file name and line number
Formatdatetime explanation [easy to understand]
【NOI模拟赛】字符串匹配(后缀自动机SAM,莫队,分块)
Arrow parquet
结构体,枚举类型与联合体
[MCU] 51 MCU burning those things
数据库清空表数据并让主键从1开始
Docker builds redis cluster
[today in history] July 17: Softbank acquired arm; The first email interruption; Wikimedia International Conference
使用oap切面导致controller被重复调用
test