luoshi 4 年之前
父節點
當前提交
9c1e8ef074

+ 4 - 2
api-demo/pom.xml

@@ -25,6 +25,10 @@
             <groupId>com.qmth.boot</groupId>
             <artifactId>data-mybatis-plus</artifactId>
         </dependency>
+        <dependency>
+            <groupId>com.qmth.boot</groupId>
+            <artifactId>core-cache</artifactId>
+        </dependency>
         <dependency>
             <groupId>com.qmth.boot</groupId>
             <artifactId>core-schedule</artifactId>
@@ -33,7 +37,6 @@
             <groupId>com.qmth.boot</groupId>
             <artifactId>core-fss</artifactId>
         </dependency>
-        <!--
         <dependency>
             <groupId>com.qmth.boot</groupId>
             <artifactId>core-concurrent</artifactId>
@@ -42,7 +45,6 @@
             <groupId>com.qmth.boot</groupId>
             <artifactId>core-uid</artifactId>
         </dependency>
-        -->
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>

+ 5 - 0
api-demo/src/main/java/com/qmth/demo/api/ApiDemoApplication.java

@@ -26,6 +26,11 @@ public class ApiDemoApplication {
     //        };
     //    }
 
+    //    @Bean
+    //    public RateLimitPolicy rateLimitPolicy() {
+    //        return endpoint -> new RateLimitRule[0];
+    //    }
+
     @Bean
     public CustomizeCacheConfiguration customizeCacheConfiguration() {
         return registration -> {

+ 2 - 2
api-demo/src/main/java/com/qmth/demo/api/controller/RedisController.java

@@ -19,8 +19,8 @@ import java.util.Map;
 @Aac(strict = BOOL.FALSE, auth = BOOL.FALSE)
 public class RedisController {
 
-    //@Resource
-    //private RedisTemplate<String, Object> redisTemplate;
+    //    @Resource
+    //    private RedisTemplate<String, Object> redisTemplate;
 
     @Resource
     private RedissonClient redissonClient;