From 5f7141c09fdcfd4ed7ec6db42069133ad978880e Mon Sep 17 00:00:00 2001
From: 935090232@qq.com <ak473600000>
Date: Sun, 24 Oct 2021 00:15:07 +0800
Subject: [PATCH] 新增本地缓存方法,逐步替换redis

---
 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..caf92b3 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.InitWebContainer;
 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=InitWebContainer.getLocalCache(key);
+		return AjaxResult.buildSuccessInstance(cache);
+	}
+
+
 }
\ No newline at end of file

--
Gitblit v1.9.1