2021
11-17
11-17
Springboot+Redis实现API接口限流的示例代码
添加Redis的jar包.<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-data-redis</artifactId></dependency>在application.yml中配置redisspring:##Redisredis:database:0host:127.0.0.1port:6379password:jedis:pool:max-active:8max-wait:-1msmax-idle:8min-idle:0timeout:...
继续阅读 >