下载(Fork)源码
- 源码地址:https://github.com/alibaba/Sentinel
- 我的地址:https://github.com/zmzhou-star/Sentinel
- Sentinel-dashboard下载地址:https://github.com/zmzhou-star/Sentinel/releases/tag/1.8.1.2
sentinel-dashboard子模块改造
- 找到sentinel-dashboard子模块,idea打开
- 打开pom.xml文件
<!-- for Nacos rule publisher sample -->
<dependency>
<groupId>com.alibaba.csp</groupId>
<artifactId>sentinel-datasource-nacos</artifactId>
<!-- 注释 test -->
<!--<scope>test</scope>-->
</dependency>
<!-- 可以选择升级 spring boot 版本,升级后需要新增 jackson 依赖 -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.11.4</version>
</dependency>
3. 找到test下的目录 sentinel-dashboard/src/test/java/com/alibaba/csp/sentinel/dashboard/rule/nacos
将整个目录复制到 sentinel-dashboard/src/ma