diff --git a/src/main/java/com/org/flashsalesystem/controller/TestController.java b/src/main/java/com/org/flashsalesystem/controller/TestController.java deleted file mode 100644 index aef453e..0000000 --- a/src/main/java/com/org/flashsalesystem/controller/TestController.java +++ /dev/null @@ -1,40 +0,0 @@ -package com.org.flashsalesystem.controller; - -import io.swagger.v3.oas.annotations.Operation; -import io.swagger.v3.oas.annotations.tags.Tag; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; - -import java.util.HashMap; -import java.util.Map; - -/** - * 测试控制器 - * 用于验证应用程序是否正常启动 - */ -@Tag(name = "系统测试", description = "系统健康检查和测试接口") -@RestController -@RequestMapping("/test") -public class TestController { - - @Operation(summary = "系统问候", description = "测试系统是否正常运行") - @GetMapping("/hello") - public Map hello() { - Map response = new HashMap<>(); - response.put("message", "Hello! 秒杀系统运行正常"); - response.put("status", "success"); - response.put("timestamp", System.currentTimeMillis()); - return response; - } - - @Operation(summary = "健康检查", description = "检查系统健康状态") - @GetMapping("/health") - public Map health() { - Map response = new HashMap<>(); - response.put("status", "UP"); - response.put("application", "FlashSaleSystem"); - response.put("version", "1.0.0"); - return response; - } -} diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index ab52f9e..349b195 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -9,7 +9,7 @@ spring: # 数据源配置 datasource: - url: jdbc:mysql://localhost:3306/flash_sale_db?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai + url: jdbc:mysql://localhost:3306/flash_sale_db?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&useSSL=false username: root password: root driver-class-name: com.mysql.cj.jdbc.Driver diff --git a/src/main/webapp/WEB-INF/views/admin/monitor.jsp b/src/main/webapp/WEB-INF/views/admin/monitor.jsp deleted file mode 100644 index 847166d..0000000 --- a/src/main/webapp/WEB-INF/views/admin/monitor.jsp +++ /dev/null @@ -1,533 +0,0 @@ -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> -<%@ taglib prefix="fn" uri="http://flashsale.org/functions" %> - - -<%@ include file="../common/header.jsp" %> - -
-
- - - - -
-
-

系统监控

-
-
- - -
-
-
- - -
-
-
-
-
正常
-

系统状态

-
-
-
-
-
-
-
0%
-

CPU使用率

-
-
-
-
-
-
-
0%
-

内存使用率

-
-
-
-
-
-
-
0%
-

磁盘使用率

-
-
-
-
- - -
-
-
-
-
Redis集群状态
-
-
-
- - - - - - - - - - - - - - -
节点状态内存使用连接数
- 加载中... -
-
-
-
-
-
-
-
-
数据库连接池
-
-
-
-
-
-

0

- 活跃连接 -
-
-
-
-

0

- 空闲连接 -
-
-
-
-
-
-
-

0

- 最大连接 -
-
-
-
-

0

- 总连接数 -
-
-
-
-
-
-
- - -
-
-
-
-
接口性能监控
-
-
-
- - - - - - - - - - - - - - - - -
接口路径请求次数平均响应时间成功率最后调用状态
- 加载中... -
-
-
-
-
-
- - -
-
-
-
-
最近错误日志
-
-
-
- - - - - - - - - - - - - - - -
时间级别模块错误信息操作
- 加载中... -
-
-
-
-
-
- - -
-
-
-
-
CPU & 内存使用趋势
-
-
- -
-
-
-
-
-
-
请求量统计
-
-
- -
-
-
-
-
-
-
- - - - - -<%@ include file="../common/footer.jsp" %> diff --git a/src/main/webapp/WEB-INF/views/admin/users.jsp b/src/main/webapp/WEB-INF/views/admin/users.jsp index 5581132..a99c0a8 100644 --- a/src/main/webapp/WEB-INF/views/admin/users.jsp +++ b/src/main/webapp/WEB-INF/views/admin/users.jsp @@ -39,11 +39,6 @@ 用户管理 - diff --git a/src/main/webapp/WEB-INF/views/index.jsp b/src/main/webapp/WEB-INF/views/index.jsp index 61dcdef..d1323a6 100644 --- a/src/main/webapp/WEB-INF/views/index.jsp +++ b/src/main/webapp/WEB-INF/views/index.jsp @@ -173,48 +173,6 @@ - - -
-

- 性能指标 -

- -
-
-
-
-

10000+

-

QPS并发处理

-
-
-
-
-
-
-

<100ms

-

平均响应时间

-
-
-
-
-
-
-

99.9%

-

系统可用性

-
-
-
-
-
-
-

50000+

-

并发用户支持

-
-
-
-
-