1.下载阿里巴巴Nacos注册中心,下载地址https://github.com/alibaba/nacos/releases,我这里下载的是windows版本
2.下载sentinel高可用流量框架,下载地址https://github.com/alibaba/Sentinel/releases
3.使用idea创建maven工程,然后在pom中添加maven依赖
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
</dependency>