spring boot反爬虫接口防刷组件

it2023-02-07  52

pom文件

<dependency> <groupId>cn.keking.project</groupId> <artifactId>kk-anti-reptile</artifactId> <version>1.0.0-RELEASE</version> </dependency> <dependency> <groupId>org.redisson</groupId> <artifactId>redisson</artifactId> <version>3.6.5</version> </dependency>

yml文件

spring: redisson: address: redis://local.redis.com:6379 password: 123456 anti: reptile: manager: # 是否启用反爬虫插件 enabled: true

使用时在方法上添加注解:@AntiReptile

最新回复(0)