diff --git a/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/monitor/controller/ActuatorRedisController.java b/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/monitor/controller/ActuatorRedisController.java index 9e2ae3fd..5990d2d2 100644 --- a/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/monitor/controller/ActuatorRedisController.java +++ b/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/monitor/controller/ActuatorRedisController.java @@ -1,11 +1,11 @@ package com.jero.modules.monitor.controller; import com.alibaba.fastjson.JSONArray; -import lombok.extern.slf4j.Slf4j; import com.jero.common.api.vo.Result; import com.jero.modules.monitor.domain.RedisInfo; +import com.jero.modules.monitor.exception.RedisConnectException; import com.jero.modules.monitor.service.RedisService; -import org.apache.poi.ss.formula.functions.T; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; @@ -34,14 +34,14 @@ public class ActuatorRedisController { * @throws Exception */ @GetMapping("/info") - public Result> getRedisInfo() throws Exception { + public Result> getRedisInfo() throws RedisConnectException { List infoList = this.redisService.getRedisInfo(); log.info(infoList.toString()); return Result.OK(infoList); } @GetMapping("/keysSize") - public Map getKeysSize() throws Exception { + public Map getKeysSize() throws RedisConnectException { return redisService.getKeysSize(); } @@ -51,7 +51,7 @@ public class ActuatorRedisController { * @throws Exception */ @GetMapping("/keysSizeForReport") - public Map getKeysSizeReport() throws Exception { + public Map getKeysSizeReport() throws RedisConnectException { return redisService.getMapForReport("1"); } /** @@ -61,7 +61,7 @@ public class ActuatorRedisController { * @throws Exception */ @GetMapping("/memoryForReport") - public Map memoryForReport() throws Exception { + public Map memoryForReport() throws RedisConnectException { return redisService.getMapForReport("2"); } /** @@ -70,12 +70,12 @@ public class ActuatorRedisController { * @throws Exception */ @GetMapping("/infoForReport") - public Map infoForReport() throws Exception { + public Map infoForReport() throws RedisConnectException { return redisService.getMapForReport("3"); } @GetMapping("/memoryInfo") - public Map getMemoryInfo() throws Exception { + public Map getMemoryInfo() throws RedisConnectException { return redisService.getMemoryInfo(); }