新增spring cloud用例

This commit is contained in:
罗祥
2019-01-16 17:27:29 +08:00
parent 5861cd8a4a
commit 2c862b5124
43 changed files with 1017 additions and 4 deletions

View File

@ -27,13 +27,13 @@ public class ProductService implements IProductService, ApplicationListener<WebS
public List<Product> queryAllProducts() {
// 用于测试 hystrix 超时熔断
/*用于测试 hystrix 超时熔断
try {
int i = new Random().nextInt(2500);
Thread.sleep(i);
} catch (InterruptedException e) {
e.printStackTrace();
}
}*/
return productList;
}