From bf977b22182ad9f1ab86eb47fa24850541d1bfd1 Mon Sep 17 00:00:00 2001 From: tanghc Date: Fri, 9 Apr 2021 20:50:05 +0800 Subject: [PATCH] 4.4.0 --- doc/docs/files/10092_接口限流.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/docs/files/10092_接口限流.md b/doc/docs/files/10092_接口限流.md index 95596b4c..b1524404 100644 --- a/doc/docs/files/10092_接口限流.md +++ b/doc/docs/files/10092_接口限流.md @@ -65,15 +65,16 @@ spring.redis.host=127.0.0.1 spring.redis.port=6379 ``` -- 在启动类中添加如下代码: +- 在`com.gitee.sop.gateway.config.MyConfig`中添加如下代码: ```java @Autowired private RedisTemplate redisTemplate; @PostConstruct -public void doAfter() { +public void after() { ApiConfig.getInstance().setLimitManager(new RedisLimitManager(redisTemplate)); + ... } ```