feat: 集成 Sentinel 实现接口防刷和限流

This commit is contained in:
xiongxiaoyang
2022-06-01 13:40:17 +08:00
parent 9894814fe4
commit c628104a30
4 changed files with 139 additions and 6 deletions

15
pom.xml
View File

@ -111,18 +111,31 @@
<artifactId>jackson-databind</artifactId>
</dependency>
<!-- MQ 相关-->
<!-- MQ 相关 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-amqp</artifactId>
</dependency>
<!-- XXL-JOB 相关 -->
<dependency>
<groupId>com.xuxueli</groupId>
<artifactId>xxl-job-core</artifactId>
<version>${xxl-job.version}</version>
</dependency>
<!-- sentinel 相关 -->
<dependency>
<groupId>com.alibaba.csp</groupId>
<artifactId>sentinel-core</artifactId>
<version>1.8.4</version>
</dependency>
<dependency>
<groupId>com.alibaba.csp</groupId>
<artifactId>sentinel-parameter-flow-control</artifactId>
<version>1.8.4</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>