ajax test
This commit is contained in:
parent
768468dd3a
commit
26d9cadc81
@ -3387,9 +3387,20 @@ public class TestController {
|
||||
@RequestParam String isSuccess,
|
||||
@RequestParam String s_msg,
|
||||
@RequestParam String f_msg,
|
||||
@RequestParam int sleep,
|
||||
HttpServletRequest request,
|
||||
ModelMap model) throws Exception {
|
||||
|
||||
System.out.println("sleep :: "+ sleep);
|
||||
|
||||
int s = sleep*1000;
|
||||
try {
|
||||
// 3초 지연
|
||||
Thread.sleep(s);
|
||||
} catch (InterruptedException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
if("Y".equals(isSuccess)) {
|
||||
return ResponseEntity.ok().body(new StatusResponse(HttpStatus.OK, s_msg, ""));
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user