From df1f218bb8a8d7415c9fc72fdae9a1e01f58deb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E5=82=85=E5=93=A5?= <184172133@qq.com> Date: Sat, 17 Jun 2023 12:14:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E5=82=85=E5=93=A5=EF=BC=8Cfeat?= =?UTF-8?q?=EF=BC=9A=E6=B7=BB=E5=8A=A0=E9=9A=8F=E6=9C=BA=E7=9D=A1=E7=9C=A0?= =?UTF-8?q?=E6=97=B6=E9=97=B4=EF=BC=8C=E4=BE=BF=E4=BA=8E=E7=9B=91=E6=8E=A7?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cn/bugstack/xfg/frame/controller/UserController.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/cn/bugstack/xfg/frame/controller/UserController.java b/src/main/java/cn/bugstack/xfg/frame/controller/UserController.java index 32ac44f..88bd696 100644 --- a/src/main/java/cn/bugstack/xfg/frame/controller/UserController.java +++ b/src/main/java/cn/bugstack/xfg/frame/controller/UserController.java @@ -10,6 +10,7 @@ import org.springframework.web.bind.annotation.RestController; import javax.annotation.Resource; import java.util.List; +import java.util.Random; @Slf4j @RestController @@ -25,6 +26,7 @@ public class UserController { public UserRes queryUserInfo() { try { log.info("查询用户信息"); + Thread.sleep(new Random().nextInt(50)); List userInfoList = userService.queryUserList(); return UserRes.builder().userInfos(userInfoList).result(Result.buildSuccess()).build(); } catch (Exception e) { -- GitLab