From 2151a5efbac31c1f6a1b2563ccb352170aa48c9c Mon Sep 17 00:00:00 2001
From: 935090232@qq.com <ak473600000>
Date: Mon, 25 Oct 2021 14:14:16 +0800
Subject: [PATCH] 新增本地缓存

---
 zq-erp/src/main/java/com/matrix/system/common/actions/DeveloperAction.java |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/zq-erp/src/main/java/com/matrix/system/common/actions/DeveloperAction.java b/zq-erp/src/main/java/com/matrix/system/common/actions/DeveloperAction.java
index 90acb1a..aa6c8c5 100644
--- a/zq-erp/src/main/java/com/matrix/system/common/actions/DeveloperAction.java
+++ b/zq-erp/src/main/java/com/matrix/system/common/actions/DeveloperAction.java
@@ -3,6 +3,7 @@
 import com.matrix.core.constance.MatrixConstance;
 import com.matrix.core.pojo.AjaxResult;
 import com.matrix.core.web.BaseAction;
+import com.matrix.system.common.init.LocalCache;
 import org.springframework.stereotype.Controller;
 import org.springframework.web.bind.annotation.PathVariable;
 import org.springframework.web.bind.annotation.RequestMapping;
@@ -73,4 +74,11 @@
 		return new AjaxResult(AjaxResult.STATUS_SUCCESS, "debug模式开启");
 	}
 
+	@RequestMapping("/getLocalCache")
+	public @ResponseBody AjaxResult getLocalCache(String key) {
+		Object cache= LocalCache.get(key);
+		return AjaxResult.buildSuccessInstance(cache);
+	}
+
+
 }
\ No newline at end of file

--
Gitblit v1.9.1