123456789101112131415161718192021222324252627282930313233343536 |
- <?xml version="1.0" encoding="UTF-8"?>
- <project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <parent>
- <artifactId>spring-cloud-alibaba</artifactId>
- <groupId>com.tanyun</groupId>
- <version>1.0-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>api-gateway</artifactId>
- <dependencies>
- <!--不能引用web-starter, 因为其中包含有web容器,而gateway不需要web容器,底层采用webflux-->
- <dependency>
- <groupId>org.springframework.cloud</groupId>
- <artifactId>spring-cloud-starter-gateway</artifactId>
- </dependency>
- <!-- nacos客户端 -->
- <dependency>
- <groupId>com.alibaba.cloud</groupId>
- <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
- </dependency>
- <!--
- 限流
- 提供两种资源未读的限流
- 1. route维度: 在spring配置文件中配置的路由条目,资源名为对应的routeid
- 2. 自定义API维度:用户可以利用Sentinel提供的api来自定义一些api分组
- -->
- <dependency>
- <groupId>com.alibaba.csp</groupId>
- <artifactId>sentinel-spring-cloud-gateway-adapter</artifactId>
- </dependency>
- </dependencies>
- </project>
|