type
Post
status
Published
date
Feb 23, 2025
slug
springfcftj
summary
两种实现方式:拦截器+redis;AOP+redis
tags
Spring
redis
AOP
category
技术分享
icon
fa-solid fa-file
password

Spring防重复提交

1 Redis + 注解 + 拦截器

1.1 创建防重复提交注解

1.2 添加注解

1.3 创建防止重复提交拦截器

1.4 将拦截器添加到 Spring 中


2 Redis + 注解 + AOP

2.1 创建防重复提交注解

同上

2.2 添加注解

同上

2.3 创建防止重复提交切面类

缓存穿透、击穿、雪崩栈和堆
Loading...