From 7cddbf1d240380978bb51988e092579eff4df0e4 Mon Sep 17 00:00:00 2001 From: zhaoxiaohao <913652501@qq.com> Date: Thu, 23 Apr 2020 16:03:06 +0800 Subject: [PATCH] 修改 拦截器 --- kidgrow-springcloud/kidgrow-springcloud-zuul/pom.xml | 25 +++++++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/kidgrow-springcloud/kidgrow-springcloud-zuul/pom.xml b/kidgrow-springcloud/kidgrow-springcloud-zuul/pom.xml index cc98b94..a1ab394 100644 --- a/kidgrow-springcloud/kidgrow-springcloud-zuul/pom.xml +++ b/kidgrow-springcloud/kidgrow-springcloud-zuul/pom.xml @@ -56,6 +56,11 @@ <artifactId>spring-boot-configuration-processor</artifactId> <optional>true</optional> </dependency> + <!--网关限流模块--> + <dependency> + <groupId>com.marcosbarbero.cloud</groupId> + <artifactId>spring-cloud-zuul-ratelimit</artifactId> + </dependency> <!--web 模块--> <dependency> <groupId>org.springframework.boot</groupId> @@ -107,6 +112,11 @@ <groupId>com.github.zlt2000</groupId> <artifactId>swagger-butler-core</artifactId> </dependency> + <!-- redis--> + <dependency> + <groupId>com.kidgrow</groupId> + <artifactId>kidgrow-redis-spring-boot-starter</artifactId> + </dependency> </dependencies> <build> @@ -130,6 +140,21 @@ </execution> </executions> </plugin> + <plugin> + <groupId>com.spotify</groupId> + <artifactId>dockerfile-maven-plugin</artifactId> + <configuration> + <!-- Dockerfile目录指定 --> + <dockerfile>Dockerfile</dockerfile> + <repository>${docker.repostory}/${docker.image.prefix}/${project.artifactId}</repository> + <!-- 生成镜像标签 如不指定 默认为latest --> + <tag>1.0.1</tag> + <!--<tag>${project.version}</tag>--> + <buildArgs> + <JAR_FILE>./target/${project.build.finalName}.jar</JAR_FILE> + </buildArgs> + </configuration> + </plugin> </plugins> </build> </project> \ No newline at end of file -- Gitblit v1.8.0