diff --git a/agileboot-admin/src/main/resources/application.yml b/agileboot-admin/src/main/resources/application.yml
index ae2d7ee..b9ea376 100644
--- a/agileboot-admin/src/main/resources/application.yml
+++ b/agileboot-admin/src/main/resources/application.yml
@@ -22,6 +22,11 @@ spring:
profiles:
active: basic,dev
+# 如果需要无Mysql 无Redis直接启动的话 可以将这个参数置为true, 并且spring.profile.active: dev换成test
+agileboot:
+ embedded-test: false
+
+
diff --git a/agileboot-common/pom.xml b/agileboot-common/pom.xml
index fb1bcca..d5062dd 100644
--- a/agileboot-common/pom.xml
+++ b/agileboot-common/pom.xml
@@ -166,6 +166,19 @@
mockito-all
+
+
+ it.ozimov
+ embedded-redis
+ 0.7.3
+
+
+
+ org.slf4j
+ slf4j-simple
+
+
+
diff --git a/agileboot-infrastructure/pom.xml b/agileboot-infrastructure/pom.xml
index 3b6cf6a..d32af6d 100644
--- a/agileboot-infrastructure/pom.xml
+++ b/agileboot-infrastructure/pom.xml
@@ -99,6 +99,12 @@
31.0.1-jre
+
+ com.h2database
+ h2
+ runtime
+
+
diff --git a/agileboot-infrastructure/src/main/java/com/agileboot/infrastructure/aspectj/RateLimiterAspect.java b/agileboot-infrastructure/src/main/java/com/agileboot/infrastructure/aspectj/RateLimiterAspect.java
index 08834dc..2e66a35 100644
--- a/agileboot-infrastructure/src/main/java/com/agileboot/infrastructure/aspectj/RateLimiterAspect.java
+++ b/agileboot-infrastructure/src/main/java/com/agileboot/infrastructure/aspectj/RateLimiterAspect.java
@@ -17,6 +17,7 @@ import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.reflect.MethodSignature;
import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.script.RedisScript;
import org.springframework.stereotype.Component;
@@ -29,6 +30,7 @@ import org.springframework.stereotype.Component;
@Aspect
@Component
@Slf4j
+@ConditionalOnExpression("'${agileboot.embedded-test}' != 'true'")
public class RateLimiterAspect {
private RedisTemplate