From 575fa4338c32fdd3c5c1452a139b6604e5dcdddf Mon Sep 17 00:00:00 2001 From: "Yangkai.Shen" <237497819@qq.com> Date: Mon, 30 Sep 2019 15:20:52 +0800 Subject: [PATCH] =?UTF-8?q?:tada:=20spring-boot-demo-ratelimit-redis=20?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 1 + spring-boot-demo-ratelimit-redis/.gitignore | 31 ++++++++ spring-boot-demo-ratelimit-redis/pom.xml | 75 +++++++++++++++++++ ...ringBootDemoRatelimitRedisApplication.java | 21 ++++++ ...tDemoRatelimiterRedisApplicationTests.java | 16 ++++ 5 files changed, 144 insertions(+) create mode 100644 spring-boot-demo-ratelimit-redis/.gitignore create mode 100644 spring-boot-demo-ratelimit-redis/pom.xml create mode 100644 spring-boot-demo-ratelimit-redis/src/main/java/com/xkcoding/ratelimit/redis/SpringBootDemoRatelimitRedisApplication.java create mode 100644 spring-boot-demo-ratelimit-redis/src/test/java/com/xkcoding/ratelimit/redis/SpringBootDemoRatelimiterRedisApplicationTests.java diff --git a/pom.xml b/pom.xml index 2a44ce6..cbce36e 100644 --- a/pom.xml +++ b/pom.xml @@ -65,6 +65,7 @@ spring-boot-demo-ldap spring-boot-demo-dynamic-datasource spring-boot-demo-ratelimit-guava + spring-boot-demo-ratelimit-redis spring-boot-demo-elasticsearch-rest-high-level-client pom diff --git a/spring-boot-demo-ratelimit-redis/.gitignore b/spring-boot-demo-ratelimit-redis/.gitignore new file mode 100644 index 0000000..a2a3040 --- /dev/null +++ b/spring-boot-demo-ratelimit-redis/.gitignore @@ -0,0 +1,31 @@ +HELP.md +target/ +!.mvn/wrapper/maven-wrapper.jar +!**/src/main/** +!**/src/test/** + +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ +build/ + +### VS Code ### +.vscode/ diff --git a/spring-boot-demo-ratelimit-redis/pom.xml b/spring-boot-demo-ratelimit-redis/pom.xml new file mode 100644 index 0000000..daf1a85 --- /dev/null +++ b/spring-boot-demo-ratelimit-redis/pom.xml @@ -0,0 +1,75 @@ + + + 4.0.0 + + spring-boot-demo-ratelimit-redis + 1.0.0-SNAPSHOT + jar + + spring-boot-demo-ratelimit-redis + Demo project for Spring Boot + + + com.xkcoding + spring-boot-demo + 1.0.0-SNAPSHOT + + + + UTF-8 + UTF-8 + 1.8 + + + + + org.springframework.boot + spring-boot-starter-web + + + + org.springframework.boot + spring-boot-starter-aop + + + + org.springframework.boot + spring-boot-starter-data-redis + + + + + org.apache.commons + commons-pool2 + + + + cn.hutool + hutool-all + + + + org.springframework.boot + spring-boot-starter-test + test + + + + org.projectlombok + lombok + true + + + + + spring-boot-demo-ratelimit-redis + + + org.springframework.boot + spring-boot-maven-plugin + + + + + diff --git a/spring-boot-demo-ratelimit-redis/src/main/java/com/xkcoding/ratelimit/redis/SpringBootDemoRatelimitRedisApplication.java b/spring-boot-demo-ratelimit-redis/src/main/java/com/xkcoding/ratelimit/redis/SpringBootDemoRatelimitRedisApplication.java new file mode 100644 index 0000000..76330b8 --- /dev/null +++ b/spring-boot-demo-ratelimit-redis/src/main/java/com/xkcoding/ratelimit/redis/SpringBootDemoRatelimitRedisApplication.java @@ -0,0 +1,21 @@ +package com.xkcoding.ratelimit.redis; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +/** + *

+ * 启动器 + *

+ * + * @author yangkai.shen + * @date Created in 2019/9/30 09:32 + */ +@SpringBootApplication +public class SpringBootDemoRatelimitRedisApplication { + + public static void main(String[] args) { + SpringApplication.run(SpringBootDemoRatelimitRedisApplication.class, args); + } + +} diff --git a/spring-boot-demo-ratelimit-redis/src/test/java/com/xkcoding/ratelimit/redis/SpringBootDemoRatelimiterRedisApplicationTests.java b/spring-boot-demo-ratelimit-redis/src/test/java/com/xkcoding/ratelimit/redis/SpringBootDemoRatelimiterRedisApplicationTests.java new file mode 100644 index 0000000..e4d829e --- /dev/null +++ b/spring-boot-demo-ratelimit-redis/src/test/java/com/xkcoding/ratelimit/redis/SpringBootDemoRatelimiterRedisApplicationTests.java @@ -0,0 +1,16 @@ +package com.xkcoding.ratelimit.redis; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.test.context.junit4.SpringRunner; + +@RunWith(SpringRunner.class) +@SpringBootTest +public class SpringBootDemoRatelimiterRedisApplicationTests { + + @Test + public void contextLoads() { + } + +}