当前位置:网站首页>Proceedingjoinpoint API use
Proceedingjoinpoint API use
2022-07-06 14:21:00 【Code siege lion】
@Around("myPointcut()")
public Integer AroundSave(ProceedingJoinPoint joinPoint) throws Throwable {
/*1、 Get the parameters of the target method :save(new User()), here user Object can get */
Object[] args = joinPoint.getArgs();
System.out.println(" This is a joinPoint Of Api Start --------------------");
System.out.println(" Print target method parameter list args ="+ Arrays.toString(args));
/*2、 You can get the reflection object of the target method Method*/
MethodSignature methodSignature = (MethodSignature) joinPoint.getSignature();
Method method = methodSignature.getMethod();
System.out.println(" Get the object name of the target method :"+method);
/*2.1、 from method Reflection objects get basic information */
Class<?> declaringClass = method.getDeclaringClass();
String className = declaringClass.getName();
System.out.println(" Get the name of the class "+className);
System.out.println(" Surround notification begins ");
Integer result= (Integer) joinPoint.proceed();
System.out.println(" End of surround notification ");
return result;
}
边栏推荐
- MSF generate payload Encyclopedia
- 7-6 local minimum of matrix (PTA program design)
- Experiment 7 use of common classes (correction post)
- 7-9 make house number 3.0 (PTA program design)
- List and data frame of R language experiment III
- SQL injection
- 7-7 7003 combination lock (PTA program design)
- 7-15 h0161. Find the greatest common divisor and the least common multiple (PTA program design)
- [paper reproduction] cyclegan (based on pytorch framework) {unfinished}
- 【VMware异常问题】问题分析&解决办法
猜你喜欢
. How to upload XMIND files to Jinshan document sharing online editing?
Meituan dynamic thread pool practice ideas, open source
Hcip -- MPLS experiment
7-5 staircase upgrade (PTA program design)
[dark horse morning post] Shanghai Municipal Bureau of supervision responded that Zhong Xue had a high fever and did not melt; Michael admitted that two batches of pure milk were unqualified; Wechat i
Attach the simplified sample database to the SQLSERVER database instance
附加简化版示例数据库到SqlServer数据库实例中
链队实现(C语言)
Hackmyvm target series (5) -warez
Interpretation of iterator related "itertools" module usage
随机推荐
7-4 hash table search (PTA program design)
Windows platform mongodb database installation
【MySQL数据库的学习】
Experiment 4 array
Which is more advantageous in short-term or long-term spot gold investment?
Callback function ----------- callback
Harmonyos application development -- address book management system telmanagesys based on listcontainer [phonebook][api v6]
循环队列(C语言)
Hackmyvm target series (1) -webmaster
内网渗透之内网信息收集(四)
Chain team implementation (C language)
C language file operation
【数据库 三大范式】一看就懂
HackMyvm靶机系列(4)-vulny
Experiment 7 use of common classes (correction post)
Load balancing ribbon of microservices
Analysis of penetration test learning and actual combat stage
Applet Web Capture -fiddler
强化学习基础记录
Strengthen basic learning records