--- src/main/java/itn/let/mjo/test/web/TestController.java
+++ src/main/java/itn/let/mjo/test/web/TestController.java
... | ... | @@ -3387,9 +3387,20 @@ |
| 3387 | 3387 |
@RequestParam String isSuccess, |
| 3388 | 3388 |
@RequestParam String s_msg, |
| 3389 | 3389 |
@RequestParam String f_msg, |
| 3390 |
+ @RequestParam int sleep, |
|
| 3390 | 3391 |
HttpServletRequest request, |
| 3391 | 3392 |
ModelMap model) throws Exception {
|
| 3392 | 3393 |
|
| 3394 |
+ System.out.println("sleep :: "+ sleep);
|
|
| 3395 |
+ |
|
| 3396 |
+ int s = sleep*1000; |
|
| 3397 |
+ try {
|
|
| 3398 |
+ // 3초 지연 |
|
| 3399 |
+ Thread.sleep(s); |
|
| 3400 |
+ } catch (InterruptedException e) {
|
|
| 3401 |
+ e.printStackTrace(); |
|
| 3402 |
+ } |
|
| 3403 |
+ |
|
| 3393 | 3404 |
if("Y".equals(isSuccess)) {
|
| 3394 | 3405 |
return ResponseEntity.ok().body(new StatusResponse(HttpStatus.OK, s_msg, "")); |
| 3395 | 3406 |
|
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?