타임아웃 줌

This commit is contained in:
kimscott
2019-12-10 17:00:57 +09:00
parent 6a218b1f68
commit a5fb3d7e15

View File

@@ -11,6 +11,14 @@ public class ProductController {
@GetMapping("/product/{productId}") @GetMapping("/product/{productId}")
Product productStockCheck(@PathVariable(value = "productId") Long productId) { Product productStockCheck(@PathVariable(value = "productId") Long productId) {
System.out.println("productStockCheck call");
try {
Thread.sleep(500);
} catch (InterruptedException e) {
e.printStackTrace();
}
return this.productService.getProductById(productId); return this.productService.getProductById(productId);
} }