一、从hystrix迁移
1.pom文件替换
<!-- https://mvnrepository.com/artifact/com.alibaba.cloud/spring-cloud-starter-alibaba-sentinel -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
<version>2.0.0.RELEASE</version>
</dependency>
使用sentinel替换hystrix
2.注解替换
@Bean
@SentinelRestTemplate
public RestTemplate getRestTemplate(){
return new RestTemplate();
}
使用@SentinelRestTemplate替换@@LoadBalanced
二、迁移hystrix-dashboard至sentinel-dashboard
1.下载sentinel-dashoard
https://github.com/alibaba/Sentinel/releases
建议下载源码包