Parcourir la source

增加 sentinel 限流 熔断 降级

dengsixing il y a 3 ans
Parent
commit
ac2b022333

+ 1 - 1
4dkankan-center-scene/src/main/java/com/fdkankan/scene/controller/TestController.java

@@ -77,7 +77,7 @@ public class TestController {
 //        }
 //        String test = null;
 //        test.equals("123");
-        String ruleDir = System.getProperty("user.home");
+        String ruleDir = System.getProperty("user.dir");
         return ruleDir;
 
     }

+ 1 - 1
4dkankan-common/src/main/java/com/fdkankan/common/config/DataSourceInitFunc.java

@@ -34,7 +34,7 @@ public class DataSourceInitFunc implements InitFunc {
     @Override
     public void init() throws Exception {
         //持久化在本地的目录
-        String ruleDir = System.getProperty("user.home") + "/sentinel/order/rules";
+        String ruleDir = System.getProperty("user.home") + "/sentinel/rules";
         String flowRulePath = ruleDir + "/flow-rule.json";
         String degradeRulePath = ruleDir + "/degrade-rule.json";
         String systemRulePath = ruleDir + "/system-rule.json";