![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring Aop拦截应用
登录拦截,自定义注解拦截,等
逆天killer
这个作者很懒,什么都没留下…
展开
-
SpringAOP中的JointPoint和ProceedingJoinPoint使用详解
概念Joint PointJointPoint是程序运行过程中可识别的点,这个点可以用来作为AOP切入点。JointPoint对象则包含了和切入相关的很多信息。比如切入点的对象,方法,属性等。我们可以通过反射的方式获取这些点的状态和信息,用于追踪tracing和记录logging应用信息。Pointcutpointcut 是一种程序结构和规则,它用于选取join point并收集这些point的上下文信息。pointcut通常包含了一系列的Joint Point,我们可以通过pointcut来同时原创 2022-03-25 10:35:45 · 3729 阅读 · 0 评论 -
登录拦截验证token
package com.futuredata.web.portrait.aspect;import com.futuredata.web.portrait.login.utils.MemoryCache;import com.futuredata.web.portrait.pojo.Response;import org.aspectj.lang.ProceedingJoinPoint;import org.aspectj.lang.annotation.Around;import org.as原创 2022-01-04 10:09:38 · 308 阅读 · 0 评论 -
自定义注解实现接口操作记录日志
接口拦截器–附带了登录拦截package com.futuredata.cloud.cap.aop;import com.futuredata.cloud.cap.config.feign.UaaFeignService;import com.futuredata.cloud.cap.config.feign.vo.UserVo;import com.futuredata.cloud.cap.mapper.UserLogMapper;import com.futuredata.cloud.cap原创 2022-01-13 17:47:43 · 239 阅读 · 0 评论