当前位置:网站首页>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()
边栏推荐
- Automated testing ----- selenium (I)
- [today in history] July 4: the first e-book came out; The inventor of magnetic stripe card was born; Palm computer pioneer was born
- Vulnhub | dc: 6 | [actual combat]
- [today in history] July 15: Mozilla foundation was officially established; The first operation of Enigma cipher machine; Nintendo launches FC game console
- MySQL date [plus sign / +] condition filtering problem
- 7.23
- [paper reading] unpaired image to image translation using cycle consistent advantageous networks
- KEGG通路的从属/注释信息如何获取
- Unity VS—— VS中默认调试为启动而不是附加到Unity调试
- 每条你收藏的资讯背后,都离不开TA
猜你喜欢

How to choose a microservice registration center?

FanoutExchange交换机代码教程

Technology cloud report: more than zero trust, the wild hope of Parra's "Digital Security Cloud strategy"

Today's sleep quality record 75 points

【高等数学】【5】定积分及应用
![[onnx] export pytorch model to onnx format: support multi parameter and dynamic input](/img/bd/e9a1d3a2c9343b75dbae5c7e18a87b.png)
[onnx] export pytorch model to onnx format: support multi parameter and dynamic input
![[today in history] July 13: the father of database passed away; Apple buys cups code; IBM chip Alliance](/img/2d/c23a367c9e8e2806ffd5384de273d2.png)
[today in history] July 13: the father of database passed away; Apple buys cups code; IBM chip Alliance

Card link

Interpretation of filter execution sequence source code in sprigboot

leetcode-79:单词搜索
随机推荐
leetcode-6130:设计数字容器系统
[advanced drawing of single cell] 07. Display of KEGG enrichment results
[noi simulation] string matching (suffix automata Sam, Mo team, block)
ROS_ Rqt toolbox
Brush questions with binary tree (4)
FanoutExchange交换机代码教程
[cloud native] use of Nacos taskmanager task management
Leetcode customs clearance: hash table six, this is really a little simple
Detailed explanation of document operation
Myormframeworkjdbc review and problem analysis of user-defined persistence layer framework, and thought analysis of user-defined persistence layer framework
[today in history] July 3: ergonomic standards act; The birth of pioneers in the field of consumer electronics; Ubisoft releases uplay
[today in history] July 8: PostgreSQL release; SUSE acquires the largest service provider of k8s; Activision Blizzard merger
“链”接无限可能:数字资产链,精彩马上来!
数据库清空表数据并让主键从1开始
Technology cloud report: what is the difference between zero trust and SASE? The answer is not really important
JS作用域与作用域链
[workplace rules] it workplace rules | poor performance
Increase swap space
Leetcode-6125: equal row and column pairs
103. (cesium chapter) cesium honeycomb diagram (square)