SpringBoot实现限制ip访问次数
https://blog.csdn.net/weixin_34050005/article/details/92415288?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase https://blog.csdn.net/qq_38095094/article/details/78709433 有时候存在着一些恶意访问的情况,为了阻止这种情况的发生,我们可以写一个拦截器,当某个IP的访问在单位时间内超过一定的次数时,将禁止他继续访问。 在这里我们使用了SpringBoot搭配注解来使用 除了springboot需要的依赖之外,我们还需要加上Aspect依赖 <!-- https://mvnrepository.com/artifact/org.springframework/spring-aspects --> < dependency> < groupId>org.springframework </ groupId> < artifactId