项目明细调整
This commit is contained in:
@ -407,13 +407,6 @@ public class UserInfoController {
|
||||
|
||||
|
||||
|
||||
@PostMapping("/test")
|
||||
@Timeout(5000) // 设置超时时间为 3000 毫秒(3秒)
|
||||
public String testMethod() throws InterruptedException {
|
||||
// 模拟长时间的任务,超过 3 秒会抛出超时异常
|
||||
Thread.sleep(10000); // 模拟 5 秒的耗时操作
|
||||
return "任务完成";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user