ajax test

This commit is contained in:
hehihoho3@gmail.com 2024-11-28 11:08:56 +09:00
parent 768468dd3a
commit 26d9cadc81

View File

@ -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, ""));