当前位置:网站首页>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()
边栏推荐
- Illustration leetcode - 3. longest substring without repeated characters (difficulty: medium)
- LeetCode通关:哈希表六连,这个还真有点简单
- Network protocol: TCP part2
- [advanced mathematics] [3] Application of differential mean value theorem and derivative
- [today in history] July 4: the first e-book came out; The inventor of magnetic stripe card was born; Palm computer pioneer was born
- [tensorrt] dynamic batch reasoning
- JMeter - interface test
- Arrow parquet
- Vulnhub | dc: 6 | [actual combat]
- [today in history] June 29: SGI and MIPS merged; Microsoft acquires PowerPoint developer; News corporation sells MySpace
猜你喜欢

How to realize reliable transmission with UDP?
![[today in history] July 7: release of C; Chrome OS came out;](/img/a6/3170080268a836f2e0973916d737dc.png)
[today in history] July 7: release of C; Chrome OS came out; "Legend of swordsman" issued

Docker 搭建 Redis Cluster集群
![Vulnhub | dc: 6 | [actual combat]](/img/7e/de7d5b56724bde5db2bb8338c35aa8.png)
Vulnhub | dc: 6 | [actual combat]

leetcode-919:完全二叉树插入器
![[advanced drawing of single cell] 07. Display of KEGG enrichment results](/img/60/09c5f44d64b96c6e4d57e5f426e4ed.png)
[advanced drawing of single cell] 07. Display of KEGG enrichment results

IEC61131 address representation

Unity VS—— VS中默认调试为启动而不是附加到Unity调试

Embedded development: embedded foundation -- threads and tasks

网络协议:TCP Part2
随机推荐
Implementation of simple registration and login
matlab----EEGLab查看脑电信号
【高等数学】【5】定积分及应用
Compilation and operation of program
[today in history] July 4: the first e-book came out; The inventor of magnetic stripe card was born; Palm computer pioneer was born
leetcode-114:二叉树展开为链表
Principle analysis of bootloader
Solution to oom exceptions caused by improper use of multithreading in production environment (supreme Collection Edition)
Docker 搭建 Redis Cluster集群
leetcode-6130:设计数字容器系统
Embedded development: embedded foundation -- threads and tasks
The database empties the table data and makes the primary key start from 1
Leetcode-155: minimum stack
leetcode-6131:不可能得到的最短骰子序列
【NOI模拟赛】字符串匹配(后缀自动机SAM,莫队,分块)
[advanced mathematics] [5] definite integral and its application
Recommended books | essentials of industrial digital transformation: methods and Practice
Remote—基本原理介绍
Jmeter——接口测试
[noi simulation] string matching (suffix automata Sam, Mo team, block)