![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
aop
文章平均质量分 77
cy0327
这个作者很懒,什么都没留下…
展开
-
aop实现幂等性校验
自定义注解、aop、redis,对接口方法进行幂等校验 //自定义注解: @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) public @interface AutoCheckMethod { } //redis工具类 public class RedisTemplateUtil extends RedisTemplate<Serializable, Object> { /** * 如果已经原创 2022-05-28 17:39:34 · 483 阅读 · 0 评论 -
获取入参数据并封装
/** * 获取入参数据 * @param joinPoint * @return * @throws Exception */ private Map<String, Object> getFieldsName(JoinPoint joinPoint) throws Exception { String classType = joinPoint.getTarget().getClass().getName(); .原创 2022-05-16 11:51:28 · 167 阅读 · 0 评论