1
0
mirror of https://gitee.com/mirrors/Spring-Cloud-Alibaba.git synced 2021-06-26 13:25:11 +08:00

pass code check

This commit is contained in:
fangjian0423
2020-01-14 16:54:01 +08:00
parent ddceb5f312
commit 00d449ba23
10 changed files with 59 additions and 54 deletions

View File

@@ -38,7 +38,8 @@ import org.springframework.web.client.RestTemplate;
public class ServiceApplication {
@Bean
@SentinelRestTemplate(blockHandler = "handleException", blockHandlerClass = ExceptionUtil.class)
@SentinelRestTemplate(blockHandler = "handleException",
blockHandlerClass = ExceptionUtil.class)
public RestTemplate restTemplate() {
return new RestTemplate();
}