当前位置:网站首页>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()
边栏推荐
猜你喜欢

Technology cloud report: what is the difference between zero trust and SASE? The answer is not really important

Fanoutexchange switch code tutorial

Brush questions with binary tree (4)

Detailed explanation of document operation

Introduction and construction of consul Registration Center

结构体,枚举类型与联合体
![[today in history] June 29: SGI and MIPS merged; Microsoft acquires PowerPoint developer; News corporation sells MySpace](/img/86/abeb82927803712a98d2018421c3a7.png)
[today in history] June 29: SGI and MIPS merged; Microsoft acquires PowerPoint developer; News corporation sells MySpace
![[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
![[today in history] July 4: the first e-book came out; The inventor of magnetic stripe card was born; Palm computer pioneer was born](/img/0b/73f0d98a6db813e54074abe199ed98.png)
[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-6131: the shortest dice sequence impossible to get
随机推荐
[matlab] download originality documents based on oil monkey script and MATLAB
Apache Mina framework "suggestions collection"
leetcode-6127:优质数对的数目
FanoutExchange交换机代码教程
[advanced mathematics] [3] Application of differential mean value theorem and derivative
[today in history] July 19: the father of IMAP agreement was born; Project kotlin made a public appearance; New breakthroughs in CT imaging
Technology cloud report: more than zero trust, the wild hope of Parra's "Digital Security Cloud strategy"
"Chain" connects infinite possibilities: digital asset chain, wonderful coming soon!
wokerman 自定义写入日志文件
How to realize reliable transmission with UDP?
Remote—实战
leetcode-114:二叉树展开为链表
Leetcode-6131: the shortest dice sequence impossible to get
[noi simulation] string matching (suffix automata Sam, Mo team, block)
IEC61131 address representation
2022.7.24-----leetcode.1184
[advanced drawing of single cell] 07. Display of KEGG enrichment results
Hello, I'd like to ask questions about C and database operation.
毕业从事弱电3个月,我为什么会选择转行网络工程师
[leetcode] 28. Implement strstr ()