타임아웃 줌
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user