|
@@ -15,7 +15,12 @@ public class CommonController {
|
|
|
private CommonService commonService;
|
|
private CommonService commonService;
|
|
|
|
|
|
|
|
@GetMapping("/{caller}/export")
|
|
@GetMapping("/{caller}/export")
|
|
|
- public Result export(@PathVariable("caller") String caller){
|
|
|
|
|
|
|
+ public Result export(){
|
|
|
|
|
+ return Result.success();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @GetMapping("/{caller}/print")
|
|
|
|
|
+ public Result print() {
|
|
|
return Result.success();
|
|
return Result.success();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -34,4 +39,14 @@ public class CommonController {
|
|
|
return deferredResult;
|
|
return deferredResult;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @GetMapping("/timeout/test")
|
|
|
|
|
+ public void timeout(@RequestParam("time") Long time){
|
|
|
|
|
+ try {
|
|
|
|
|
+ System.out.println("进入时间:" + time);
|
|
|
|
|
+ Thread.sleep(time);
|
|
|
|
|
+ System.out.println("出去时间:" + time);
|
|
|
|
|
+ }catch (Exception e){
|
|
|
|
|
+ e.printStackTrace();
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|